From: Jakub Bogusz Date: Sat, 28 Nov 2020 09:17:29 +0000 (+0100) Subject: - updated nopowerstates-single patch X-Git-Tag: auto/th/SysVinit-2.98-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=refs%2Ftags%2Fauto%2Fth%2FSysVinit-2.98-1;p=packages%2FSysVinit.git - updated nopowerstates-single patch --- diff --git a/sysvinit-nopowerstates-single.patch b/sysvinit-nopowerstates-single.patch index c3087b1..fd8ce93 100644 --- a/sysvinit-nopowerstates-single.patch +++ b/sysvinit-nopowerstates-single.patch @@ -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