[Pkg-sysvinit-commits] r526 - sysvinit/trunk/debian/patches
Thomas Hood
jdthood-guest at costa.debian.org
Wed Jan 4 16:47:43 UTC 2006
Author: jdthood-guest
Date: 2006-01-04 16:47:43 +0000 (Wed, 04 Jan 2006)
New Revision: 526
Modified:
sysvinit/trunk/debian/patches/63_init_longer_procname.dpatch
Log:
Tweak 63_init_longer_procname.dpatch
Modified: sysvinit/trunk/debian/patches/63_init_longer_procname.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/63_init_longer_procname.dpatch 2006-01-04 15:53:53 UTC (rev 525)
+++ sysvinit/trunk/debian/patches/63_init_longer_procname.dpatch 2006-01-04 16:47:43 UTC (rev 526)
@@ -2,15 +2,19 @@
## 63_init_longer_procname.dpatch by Kir Kolyshkin
##
## All lines beginning with `## DP:' are a description of the patch.
-## DP: Allow process name to be one character longer
+## DP: Terminate argv0 with one 0 rather than two so that process
+## DP: name can be one character longer
@DPATCH@
-Index: sysvinit/src/init.c
---- sysvinit/src/init.c_ORIG 2005-12-02 17:18:16.000000000 +0100
-+++ sysvinit/src/init.c 2005-12-02 17:18:40.000000000 +0100
-@@ -617,7 +617,7 @@
+diff -urNad --exclude=CVS --exclude=.svn ./src/init.c /tmp/dpep-work.aSvxrG/trunk/src/init.c
+--- ./src/init.c 2006-01-04 17:44:08.000000000 +0100
++++ /tmp/dpep-work.aSvxrG/trunk/src/init.c 2006-01-04 17:44:20.000000000 +0100
+@@ -615,9 +615,9 @@
+ len = vsnprintf(buf, sizeof(buf), fmt, ap);
+ va_end(ap);
- if (maxproclen > 2) {
+- if (maxproclen > 2) {
++ if (maxproclen > 1) {
memset(argv0, 0, maxproclen);
- strncpy(argv0, buf, maxproclen - 2);
+ strncpy(argv0, buf, maxproclen - 1);
More information about the Pkg-sysvinit-commits
mailing list