gvfs r1819 - in trunk: . client



Author: hansp
Date: Fri Jul 18 03:21:34 2008
New Revision: 1819
URL: http://svn.gnome.org/viewvc/gvfs?rev=1819&view=rev

Log:
2008-07-17  Hans Petter Jansson  <hpj novell com>

	* client/gvfsfusedaemon.c (reindex_file_handle_for_path): Steal the
	old file handle record from the global hash table before replacing
	its path, not after. Part of fix for #536614.



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

Modified: trunk/client/gvfsfusedaemon.c
==============================================================================
--- trunk/client/gvfsfusedaemon.c	(original)
+++ trunk/client/gvfsfusedaemon.c	Fri Jul 18 03:21:34 2008
@@ -311,9 +311,11 @@
                                      (gpointer *) &fh))
       goto out;
 
+  g_hash_table_steal (global_fh_table, old_path);
+
   g_free (fh->path);
   fh->path = g_strdup (new_path);
-  g_hash_table_steal (global_fh_table, old_path);
+
   g_hash_table_insert (global_fh_table, fh->path, fh);
 
  out:



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