diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openrc/rc.c | 7 |
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 |