diff options
author | Roy Marples <roy@marples.name> | 2008-03-02 21:13:21 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-02 21:13:21 +0000 |
commit | a12dbdc6c93a7d63591610378e3e570b7c7d2143 (patch) | |
tree | 22cd968f4bb32bedf82e091c9ffee798d247c51e /src/rc/runscript.c | |
parent | 7c092fbc7904be18510eed08c72cbad974db8adc (diff) | |
download | openrc-a12dbdc6c93a7d63591610378e3e570b7c7d2143.tar.gz openrc-a12dbdc6c93a7d63591610378e3e570b7c7d2143.tar.bz2 openrc-a12dbdc6c93a7d63591610378e3e570b7c7d2143.tar.xz |
Don't check for root in prefix.
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 33f814d..b0982f6 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) |