]> git.pld-linux.org Git - packages/SysVinit.git/blobdiff - sysvinit-nopowerstates-single.patch
- updated nopowerstates-single patch
[packages/SysVinit.git] / sysvinit-nopowerstates-single.patch
index c3087b1178875cf63efcfa54cf671f11e7c6432a..fd8ce931d1975ab6ab52bb2798ea28bcefcfe8a5 100644 (file)
@@ -1,11 +1,11 @@
---- 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 (strpbrk(old->rlevel, "S") && !ISPOWER(old->action)) break;
-               if (old == NULL)
-                       snprintf(buf, sizeof(buf), "~~:S:wait:%s\n", SHELL);
-               else
+--- sysvinit-2.98/src/init.c.orig      2020-11-27 22:45:28.430317602 +0100
++++ sysvinit-2.98/src/init.c   2020-11-28 08:02:50.399146908 +0100
+@@ -1490,7 +1490,7 @@
+                        *      See if we have a single user entry.
+                        */
+                       for(old = newFamily; old; old = old->next)
+-                              if (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);
+                       else
This page took 0.052157 seconds and 4 git commands to generate.