[gvfs] afp: query and set time created/modification time on files



commit 6aaa8318de46265435d43f2e84d962b318cbe471
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Wed Jun 22 18:35:56 2011 +0200

    afp: query and set time created/modification time on files

 daemon/gvfsafpconnection.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index c5a59b1..6e58385 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -402,8 +402,11 @@ g_vfs_afp_command_put_afp_name (GVfsAfpCommand *command, GVfsAfpName *afp_name)
   g_data_output_stream_put_uint16 (G_DATA_OUTPUT_STREAM (command),
                                    afp_name->len, NULL, NULL);
 
-  g_output_stream_write_all (G_OUTPUT_STREAM (command), afp_name->str,
-                             afp_name->len, NULL, NULL, NULL);
+  if (afp_name->len > 0)
+  {
+    g_output_stream_write_all (G_OUTPUT_STREAM (command), afp_name->str,
+                               afp_name->len, NULL, NULL, NULL);
+  }
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]