From 6b0d03e71a92c2ea3ef4d2ae43886ae0fde921ca Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sat, 20 Jul 2024 19:37:00 +0200 Subject: librc.c: return "none" from rc_runlevel_get when in user mode. Signed-off-by: Anna (navi) Figueiredo Gomes --- src/librc/librc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3