]> git.pld-linux.org Git - packages/SysVinit.git/blobdiff - sysvinit-nopowerstates-single.patch
- rel 14; restore wall permission; broken by 5a210874d8ad869a69cb59ee7158f8d1bda271dd
[packages/SysVinit.git] / sysvinit-nopowerstates-single.patch
index b824e57b9bc2366a6c089c0c72e04b5a61eccb08..c3087b1178875cf63efcfa54cf671f11e7c6432a 100644 (file)
@@ -1,12 +1,11 @@
-diff -urN sysvinit-2.86.org/src/init.c sysvinit-2.86/src/init.c
---- sysvinit-2.86.org/src/init.c       2004-07-30 14:16:20.000000000 +0200
-+++ sysvinit-2.86/src/init.c   2005-09-04 23:43:54.593827008 +0200
-@@ -1151,7 +1151,7 @@
+--- sysvinit-2.86/src/init.c.single    2005-12-21 12:21:04.000000000 -0500
++++ sysvinit-2.86/src/init.c   2005-12-21 12:21:40.000000000 -0500
+@@ -1153,7 +1153,7 @@
                 *      See if we have a single user entry.
                 */
                for(old = newFamily; old; old = old->next)
 -                      if (strpbrk(old->rlevel, "S")) break;
-+                      if (strcmp("S0123456789", old->rlevel) && strpbrk(old->rlevel, "S")) break;
++                      if (strpbrk(old->rlevel, "S") && !ISPOWER(old->action)) break;
                if (old == NULL)
-                       snprintf(buf, sizeof(buf), "~~:S:wait:%s\n", SULOGIN);
+                       snprintf(buf, sizeof(buf), "~~:S:wait:%s\n", SHELL);
                else
This page took 0.71552 seconds and 4 git commands to generate.