aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 19:37:00 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 19:37:00 +0200
commit6b0d03e71a92c2ea3ef4d2ae43886ae0fde921ca (patch)
tree5731f992a7af1b6e95f5c4a5a20a97a8d209315e /src/librc/librc.c
parent0fb6b73add5ec595b314fb0c7c98206fb5b05649 (diff)
librc.c: return "none" from rc_runlevel_get when in user mode.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index f45cc859..9084238b 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -491,7 +491,7 @@ rc_runlevel_get(void)
if (!runlevel || !*runlevel) {
free(runlevel);
- runlevel = xstrdup(RC_LEVEL_SYSINIT);
+ runlevel = xstrdup(rc_is_user() ? "none" : RC_LEVEL_SYSINIT);
}
return runlevel;