sysvinit-2.86-single.patch 451 B

123456789101112
  1. --- sysvinit-2.86/src/init.c.single 2005-12-21 12:21:04.000000000 -0500
  2. +++ sysvinit-2.86/src/init.c 2005-12-21 12:21:40.000000000 -0500
  3. @@ -1153,7 +1153,7 @@
  4. * See if we have a single user entry.
  5. */
  6. for(old = newFamily; old; old = old->next)
  7. - if (strpbrk(old->rlevel, "S")) break;
  8. + if (strpbrk(old->rlevel, "S") && !ISPOWER(old->action)) break;
  9. if (old == NULL)
  10. snprintf(buf, sizeof(buf), "~~:S:wait:%s -l\n", SHELL);
  11. else