[Pkg-utopia-commits] r1176 - in packages/unstable/dhcdbd/debian: . patches

Riccardo Setti giskard at alioth.debian.org
Wed Nov 29 15:39:54 CET 2006


Author: giskard
Date: 2006-11-29 15:39:54 +0100 (Wed, 29 Nov 2006)
New Revision: 1176

Added:
   packages/unstable/dhcdbd/debian/patches/30-pid-file-mode.patch
   packages/unstable/dhcdbd/debian/patches/40-dbus-connection.patch
Modified:
   packages/unstable/dhcdbd/debian/changelog
Log:
added 30-pid-file-mode.patch  40-dbus-connection.patch (provided by slomo)

Modified: packages/unstable/dhcdbd/debian/changelog
===================================================================
--- packages/unstable/dhcdbd/debian/changelog	2006-11-27 12:48:13 UTC (rev 1175)
+++ packages/unstable/dhcdbd/debian/changelog	2006-11-29 14:39:54 UTC (rev 1176)
@@ -1,3 +1,12 @@
+dhcdbd (2.0-3) unstable; urgency=low
+  
+  * Added debian/patches/30-pid-file-mode.patch:
+    - Create pid file with sane mode. (thank you slomo)
+  * Added debian/patches/40-dbus-connection.patch:
+    - Unref shared connections, don't close them. (thank you slomo)
+
+ -- Riccardo Setti <giskard at debian.org>  Wed, 29 Nov 2006 15:35:56 +0100
+
 dhcdbd (2.0-2) unstable; urgency=low
 
   * Don't use "exit" in dhcp hook script (Closes: #392048).

Added: packages/unstable/dhcdbd/debian/patches/30-pid-file-mode.patch
===================================================================
--- packages/unstable/dhcdbd/debian/patches/30-pid-file-mode.patch	2006-11-27 12:48:13 UTC (rev 1175)
+++ packages/unstable/dhcdbd/debian/patches/30-pid-file-mode.patch	2006-11-29 14:39:54 UTC (rev 1176)
@@ -0,0 +1,11 @@
+--- src/dhcdbd.c.old	2006-11-29 08:30:41.870035929 +0100
++++ src/dhcdbd.c	2006-11-29 08:30:51.314574140 +0100
+@@ -2830,7 +2830,7 @@
+                 return (1);
+         }
+         unlink (DHCDBD_PID_FILE);
+-        if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT)) == -1)
++        if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT, 0644)) == -1)
+                 exit (errno);
+         l = sprintf (path, "%u", getpid ());
+         l = write (fd, path, l);

Added: packages/unstable/dhcdbd/debian/patches/40-dbus-connection.patch
===================================================================
--- packages/unstable/dhcdbd/debian/patches/40-dbus-connection.patch	2006-11-27 12:48:13 UTC (rev 1175)
+++ packages/unstable/dhcdbd/debian/patches/40-dbus-connection.patch	2006-11-29 14:39:54 UTC (rev 1176)
@@ -0,0 +1,20 @@
+--- src/dbus_service.c.old	2006-11-29 08:32:03.390681525 +0100
++++ src/dbus_service.c	2006-11-29 08:32:18.847562363 +0100
+@@ -1216,7 +1216,7 @@
+     return (cs);
+ 
+ give_up:
+-    dbus_connection_close(connection);
++    dbus_connection_unref(connection);
+     dbus_shutdown();
+ 
+     return (0L);
+@@ -1250,7 +1250,7 @@
+     tdestroy(cs->roots, free_root);
+     cs->roots = 0L;
+ 
+-    dbus_connection_close(cs->connection);
++    dbus_connection_unref(cs->connection);
+     dbus_shutdown();
+     free(cs);
+ }




More information about the Pkg-utopia-commits mailing list