SOURCES: gamin-doublefree_fix.patch (NEW) - https://bugzilla.redha...

freetz freetz at pld-linux.org
Thu Sep 29 11:41:37 CEST 2005


Author: freetz                       Date: Thu Sep 29 09:41:37 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168744

---- Files affected:
SOURCES:
   gamin-doublefree_fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gamin-doublefree_fix.patch
diff -u /dev/null SOURCES/gamin-doublefree_fix.patch:1.1
--- /dev/null	Thu Sep 29 11:41:37 2005
+++ SOURCES/gamin-doublefree_fix.patch	Thu Sep 29 11:41:32 2005
@@ -0,0 +1,34 @@
+Index: server/gam_connection.c
+===================================================================
+RCS file: /cvs/gnome/gamin/server/gam_connection.c,v
+retrieving revision 1.27
+retrieving revision 1.29
+diff -u -p -r1.27 -r1.29
+--- server/gam_connection.c	10 Sep 2005 10:46:57 -0000	1.27
++++ server/gam_connection.c	22 Sep 2005 08:09:03 -0000	1.29
+@@ -387,8 +387,13 @@ gam_connection_request(GamConnDataPtr co
+ 	    gam_listener_remove_subscription(conn->listener, sub);
+ 	    gam_remove_subscription(sub);
+ #ifdef ENABLE_INOTIFY
+-	    if (gam_inotify_is_running())
+-		gam_subscription_free(sub);
++	    if ((gam_inotify_is_running()) && (!gam_exclude_check(path))) {
++		gam_fs_mon_type type;
++
++                type = gam_fs_get_mon_type (path);
++		if (type != GFS_MT_POLL)
++		    gam_subscription_free(sub);
++	    }
+ #endif
+ 
+ 	    if (gam_send_ack(conn, req->seq, path, pathlen) < 0) {
+@@ -396,7 +401,8 @@ gam_connection_request(GamConnDataPtr co
+ 			  gam_connection_get_pid(conn));
+ 	    }
+ 	    g_free(path);
+-        }   break;
++	    break;
++        }   
+         case GAM_REQ_DEBUG:
+ #ifdef GAMIN_DEBUG_API
+ 	    gam_debug_add(conn, req->path, options);
================================================================



More information about the pld-cvs-commit mailing list