aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 15:51:10 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 15:51:10 +0200
commit232c398f32ef5b388ca591ff8d6ca269c1c3aee4 (patch)
tree8be53dfda792d7bca705bad94e0a11b5b8d1eb1b
parentdce704df35a708e4d2afffbe9f8ca59b00d8605b (diff)
rc.c: remove superuser error message
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--src/openrc/rc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/openrc/rc.c b/src/openrc/rc.c
index 48279a84..599e4362 100644
--- a/src/openrc/rc.c
+++ b/src/openrc/rc.c
@@ -988,12 +988,9 @@ int main(int argc, char **argv)
clean_failed();
xasprintf(&stopping_dir, "%s/%s", rc_service_dir(), RC_STOPPING);
- if (mkdir(stopping_dir, 0755) != 0) {
- if (errno == EACCES)
- eerrorx("%s: superuser access required", applet);
- eerrorx("%s: failed to create stopping dir `%s': %s",
+ if (mkdir(stopping_dir, 0755) != 0)
+ eerrorx("%s: failed to create stopping dir '%s': %s",
applet, stopping_dir, strerror(errno));
- }
/* Create a list of all services which we could stop (assuming
* they won't be active in the new or current runlevel) including