gvfs r1820 - in branches/gnome-2-22: . client
- From: hansp svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1820 - in branches/gnome-2-22: . client
- Date: Fri, 18 Jul 2008 03:22:04 +0000 (UTC)
Author: hansp
Date: Fri Jul 18 03:22:04 2008
New Revision: 1820
URL: http://svn.gnome.org/viewvc/gvfs?rev=1820&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:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/client/gvfsfusedaemon.c
Modified: branches/gnome-2-22/client/gvfsfusedaemon.c
==============================================================================
--- branches/gnome-2-22/client/gvfsfusedaemon.c (original)
+++ branches/gnome-2-22/client/gvfsfusedaemon.c Fri Jul 18 03:22:04 2008
@@ -313,9 +313,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]