aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-14 19:53:56 +0000
committerRoy Marples <roy@marples.name>2008-01-14 19:53:56 +0000
commit7fe30026b371eb9abee5c2b07c50fde2630920d3 (patch)
treed15f39c2cc92a39254738c7aa7a1c37a4770c2a7 /src/rc
parent46294cba02a2ab318cdf9bfa8e3e05d6e50671e1 (diff)
Fix rc changing runlevels after splitting out the applets.
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc.c3
1 files changed, 3 insertions, 0 deletions
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 ("/");