From 232c398f32ef5b388ca591ff8d6ca269c1c3aee4 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 21 Jul 2024 15:51:10 +0200 Subject: rc.c: remove superuser error message Signed-off-by: Anna (navi) Figueiredo Gomes --- src/openrc/rc.c | 7 ++----- 1 file 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 -- cgit v1.2.3