aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc.c')
-rw-r--r--src/rc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rc.c b/src/rc.c
index 6b864ce0..0ecbb020 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -546,10 +546,12 @@ static void handle_signal (int sig)
/* Only drop into single user mode if we're booting */
run = getenv ("RUNLEVEL");
prev = getenv ("PREVLEVEL");
- if ((prev && strcmp (prev, "S") == 0) ||
- (run &&
- (strcmp (run, "S") == 0 ||
- strcmp (run, "1") == 0)))
+ if ((prev &&
+ (strcmp (prev, "S") == 0 ||
+ strcmp (prev, "1") == 0)) ||
+ (run &&
+ (strcmp (run, "S") == 0 ||
+ strcmp (run, "1") == 0)))
single_user ();
exit (EXIT_FAILURE);