[Pkg-sysvinit-commits] r1386 - sysvinit/trunk/debian/patches
Petter Reinholdtsen
pere at alioth.debian.org
Wed Jul 8 15:21:37 UTC 2009
Author: pere
Date: 2009-07-08 15:21:37 +0000 (Wed, 08 Jul 2009)
New Revision: 1386
Modified:
sysvinit/trunk/debian/patches/95_halt-name.dpatch
Log:
Include explanation in the code for the special handling of dash in argv[0].
Modified: sysvinit/trunk/debian/patches/95_halt-name.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/95_halt-name.dpatch 2009-07-08 15:19:42 UTC (rev 1385)
+++ sysvinit/trunk/debian/patches/95_halt-name.dpatch 2009-07-08 15:21:37 UTC (rev 1386)
@@ -9,10 +9,11 @@
@DPATCH@
--- sysvinit-2.86/src/halt.c.foo 2005-12-20 15:09:35.000000000 -0500
+++ sysvinit-2.86/src/halt.c 2005-12-20 15:09:25.000000000 -0500
-@@ -178,6 +178,7 @@
+@@ -178,6 +178,8 @@
/*
* Find out who we are
*/
++ /* Remove dash passed on in argv[0] when used as login shell. */
+ if (argv[0][0] == '-') argv[0]++;
if ((progname = strrchr(argv[0], '/')) != NULL)
progname++;
More information about the Pkg-sysvinit-commits
mailing list