gvfs r2333 - in trunk: . daemon



Author: alexl
Date: Mon Mar 16 14:24:33 2009
New Revision: 2333
URL: http://svn.gnome.org/viewvc/gvfs?rev=2333&view=rev

Log:
2009-03-16  Alexander Larsson  <alexl redhat com>

	Bug 575286 â [PATCH] fix GError overwrite warning when missing delete permission.

	* daemon/gvfsbackendftp.c (do_delete):
	Clear error before calling set_from_response.




Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendftp.c

Modified: trunk/daemon/gvfsbackendftp.c
==============================================================================
--- trunk/daemon/gvfsbackendftp.c	(original)
+++ trunk/daemon/gvfsbackendftp.c	Mon Mar 16 14:24:33 2009
@@ -2427,7 +2427,10 @@
 				   g_strerror (ENOTEMPTY));
 	    }
 	  else
-	    ftp_connection_set_error_from_response (conn, response);
+            {
+              ftp_connection_clear_error (conn);
+              ftp_connection_set_error_from_response (conn, response);
+            }
 	}
       else if (STATUS_GROUP (response) == 5)
 	{



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