From 7fe30026b371eb9abee5c2b07c50fde2630920d3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 14 Jan 2008 19:53:56 +0000 Subject: Fix rc changing runlevels after splitting out the applets. --- src/rc/rc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rc/rc.c') diff --git a/src/rc/rc.c b/src/rc/rc.c index fba3cc09..8a000bdb 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -578,6 +578,9 @@ int main (int argc, char **argv) /* Run our built in applets. If we ran one, we don't return. */ run_applets (argc, argv); + argc--; + argv++; + /* Change dir to / to ensure all scripts don't use stuff in pwd */ chdir ("/"); -- cgit v1.2.3