diff options
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r-- | src/rc/runscript.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 33f814d3..b0982f65 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -1271,8 +1271,10 @@ int runscript (int argc, char **argv) if (retval & RC_SERVICE_STARTED) retval = 0; } else { +#ifndef PREFIX if (geteuid () != 0) eerrorx ("%s: root access required", applet); +#endif if (strcmp (optarg, "conditionalrestart") == 0 || strcmp (optarg, "condrestart") == 0) |