aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-02 21:13:21 +0000
committerRoy Marples <roy@marples.name>2008-03-02 21:13:21 +0000
commita12dbdc6c93a7d63591610378e3e570b7c7d2143 (patch)
tree22cd968f4bb32bedf82e091c9ffee798d247c51e /src/rc/rc.c
parent7c092fbc7904be18510eed08c72cbad974db8adc (diff)
Don't check for root in prefix.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 102461d5..dbe975de 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -760,10 +760,12 @@ int main (int argc, char **argv)
newlevel = argv[optind++];
+#ifndef PREFIX
/* OK, so we really are the main RC process
* Only root should be able to run us */
if (geteuid () != 0)
eerrorx ("%s: root access required", applet);
+#endif
/* Enable logging */
setenv ("EINFO_LOG", "rc", 1);