Don't check for root in prefix.

This commit is contained in:
Roy Marples
2008-03-02 21:13:21 +00:00
parent 7c092fbc79
commit a12dbdc6c9
40 changed files with 42 additions and 21 deletions

View File

@@ -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);