rpms/gvfs/devel gvfs-1.6.2-stringv-dbus.patch, NONE, 1.1 gvfs.spec, 1.189, 1.190

Tomas Bzatek tbzatek at fedoraproject.org
Tue May 4 12:16:38 UTC 2010


Author: tbzatek

Update of /cvs/extras/rpms/gvfs/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv12088

Modified Files:
	gvfs.spec 
Added Files:
	gvfs-1.6.2-stringv-dbus.patch 
Log Message:
* Tue May  4 2010 Tomas Bzatek <tbzatek at redhat.com> - 1.6.1-3
- Fix Nautilus 100% CPU after trashing a file with an emblem (#584784)


gvfs-1.6.2-stringv-dbus.patch:
 gvfsdaemonprotocol.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE gvfs-1.6.2-stringv-dbus.patch ---
>From 0b1f1c87a01027459300b5965895def84286a361 Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek at redhat.com>
Date: Thu, 29 Apr 2010 16:27:46 +0200
Subject: [PATCH] Fix stringv transfer over dbus

The wrong iterator passed in caused some items to be silently dropped
plus it led to string dup of wrong pointer.

See bug 614544 for reference.
---
 common/gvfsdaemonprotocol.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/gvfsdaemonprotocol.c b/common/gvfsdaemonprotocol.c
index 7feefeb..9070cbc 100644
--- a/common/gvfsdaemonprotocol.c
+++ b/common/gvfsdaemonprotocol.c
@@ -128,6 +128,7 @@ _g_dbus_attribute_as_pointer (GFileAttributeType type,
   case G_FILE_ATTRIBUTE_TYPE_STRING:
   case G_FILE_ATTRIBUTE_TYPE_BYTE_STRING:
   case G_FILE_ATTRIBUTE_TYPE_OBJECT:
+  case G_FILE_ATTRIBUTE_TYPE_STRINGV:
     return value->ptr;
   default:
     return (gpointer) value;
@@ -372,7 +373,7 @@ _g_dbus_get_file_attribute (DBusMessageIter *iter,
 	{
 	  char **strv;
 	  int n_elements;
-	  if (!_g_dbus_message_iter_get_args (iter, NULL,
+	  if (!_g_dbus_message_iter_get_args (&variant_iter, NULL,
 					      DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &strv, &n_elements,
 					      0))
 	    goto error;
-- 
1.7.0.1



Index: gvfs.spec
===================================================================
RCS file: /cvs/extras/rpms/gvfs/devel/gvfs.spec,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -p -r1.189 -r1.190
--- gvfs.spec	26 Apr 2010 16:01:03 -0000	1.189
+++ gvfs.spec	4 May 2010 12:16:38 -0000	1.190
@@ -1,7 +1,7 @@
 Summary: Backends for the gio framework in GLib
 Name: gvfs
 Version: 1.6.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -40,6 +40,10 @@ Patch0: gvfs-archive-integration.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=552856
 Patch15: gvfs-1.5.1-gphoto2-no-storageinfo-support.patch
 
+# If you delete an empty folder with an emblem, and then try to open your trash nautilus hangs
+# https://bugzilla.gnome.org/show_bug.cgi?id=614544
+Patch16: gvfs-1.6.2-stringv-dbus.patch
+
 
 Obsoletes: gnome-mount <= 0.8
 Obsoletes: gnome-mount-nautilus-properties <= 0.8
@@ -136,6 +140,7 @@ including phones and music players to ap
 %setup -q
 %patch0 -p1 -b .archive-integration
 %patch15 -p1 -b .gphoto2-storageinfo
+%patch16 -p1 -b .stringv-dbus
 
 %build
 
@@ -301,6 +306,9 @@ killall -USR1 gvfsd >&/dev/null || :
 %{_datadir}/gvfs/remote-volume-monitors/afc.monitor
 
 %changelog
+* Tue May  4 2010 Tomas Bzatek <tbzatek at redhat.com> - 1.6.1-3
+- Fix Nautilus 100% CPU after trashing a file with an emblem (#584784)
+
 * Mon Apr 26 2010 Tomas Bzatek <tbzatek at redhat.com> - 1.6.1-2
 - Explicitly require minimal glib2 version (#585912)
 



More information about the scm-commits mailing list