summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xminiircd4
1 files changed, 2 insertions, 2 deletions
diff --git a/miniircd b/miniircd
index d79d25d..0494f75 100755
--- a/miniircd
+++ b/miniircd
@@ -1043,8 +1043,8 @@ def main(argv):
else:
op.error("Specify a user, or user and group separated by a colon,"
" e.g. --setuid daemon, --setuid nobody:nobody")
- if os.name == "posix" \
- and (os.getuid() == 0 or os.getgid() == 0) and not options.setuid:
+ if os.name == "posix" and not options.setuid \
+ and (os.getuid() == 0 or os.getgid() == 0):
op.error("Running this service as root is not recommended. Use the"
" --setuid option to switch to an unprivileged account after"
" startup. If you really intend to run as root, use"