gvfs r2356 - in trunk: . client



Author: hansp
Date: Wed Apr  1 20:26:59 2009
New Revision: 2356
URL: http://svn.gnome.org/viewvc/gvfs?rev=2356&view=rev

Log:
2009-04-01  Hans Petter Jansson  <hpj novell com>

        Potential fix for bug #574968 - gvfs ftp backend appears to not wait
        for ftpd return code on STOR.

        * client/gvfsfusedaemon.c
        (vfs_flush): Implement by closing stream.



Modified:
   trunk/ChangeLog
   trunk/client/gvfsfusedaemon.c

Modified: trunk/client/gvfsfusedaemon.c
==============================================================================
--- trunk/client/gvfsfusedaemon.c	(original)
+++ trunk/client/gvfsfusedaemon.c	Wed Apr  1 20:26:59 2009
@@ -1406,8 +1406,19 @@
 static gint
 vfs_flush (const gchar *path, struct fuse_file_info *fi)
 {
+  FileHandle *fh = get_file_handle_from_info (fi);
+
   debug_print ("vfs_flush: %s\n", path);
 
+  if (fh)
+    {
+      file_handle_close_stream (fh);
+
+      /* get_file_handle_from_info () adds a "working ref", so release that. */
+      file_handle_unref (fh);
+    }
+
+  /* TODO: Error handling. */
   return 0;
 }
 



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