Skip to content

Commit

Permalink
rc.c: remove superuser error message
Browse files Browse the repository at this point in the history
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
  • Loading branch information
navi-desu committed Jul 24, 2024
1 parent d039443 commit c4b1634
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/openrc/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4b1634

Please sign in to comment.