diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2017-11-02 22:52:32 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2017-11-02 22:52:32 +0100 |
commit | b22ef04ac6a19af6f5f18489eba894f3267d7ce3 (patch) | |
tree | c7684d066b8b79a6e1728bd1e4e359de2d50246f | |
parent | 14dda28537079e652c2891a08af11f74acfca545 (diff) | |
download | miniircd-b22ef04ac6a19af6f5f18489eba894f3267d7ce3.tar.gz miniircd-b22ef04ac6a19af6f5f18489eba894f3267d7ce3.zip |
Reorder conditions for readability
-rwxr-xr-x | miniircd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |