packages: sslh/sslh-pidfile.patch (NEW)=?UTF-8?Q?=20?=- create pid file before dropping p...

adamg adamg at pld-linux.org
Sat Feb 18 00:06:28 CET 2012


Author: adamg                        Date: Fri Feb 17 23:06:28 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- create pid file before dropping privileges

---- Files affected:
packages/sslh:
   sslh-pidfile.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/sslh/sslh-pidfile.patch
diff -u /dev/null packages/sslh/sslh-pidfile.patch:1.1
--- /dev/null	Sat Feb 18 00:06:28 2012
+++ packages/sslh/sslh-pidfile.patch	Sat Feb 18 00:06:22 2012
@@ -0,0 +1,20 @@
+--- sslh-1.10/sslh-main.c~	2011-11-26 22:16:43.000000000 +0100
++++ sslh-1.10/sslh-main.c	2012-02-17 22:56:31.899567806 +0100
+@@ -177,6 +177,8 @@
+ 
+    setup_signals();
+ 
++   write_pid_file(pid_file);
++
+    drop_privileges(user_name);
+ 
+    /* New session -- become group leader */
+@@ -185,8 +187,6 @@
+        CHECK_RES_DIE(res, "setsid: already process leader");
+    }
+ 
+-   write_pid_file(pid_file);
+-
+    /* Open syslog connection */
+    setup_syslog(argv[0]);
+ 
================================================================


More information about the pld-cvs-commit mailing list