diff options
author | Jordan Tucker <jordantucker@gmail.com> | 2017-10-24 21:53:07 -0500 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2017-11-02 22:44:02 +0100 |
commit | b2b737c13ea1cb2f05583835f15a528572b04c16 (patch) | |
tree | b7b080a86dc7f2998363df3515d931c425cb665e | |
parent | 4de216e87317b66714d183f5549557dad381d866 (diff) | |
download | miniircd-b2b737c13ea1cb2f05583835f15a528572b04c16.tar.gz miniircd-b2b737c13ea1cb2f05583835f15a528572b04c16.zip |
Handle chroot/setuid options correctly when os.name != "posix"
-rwxr-xr-x | miniircd | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1014,11 +1014,11 @@ def main(argv): metavar="U[:G]", help="change process user (and optionally group) after startup" " (requires root)") - else: - op.chroot = False - op.setuid = False (options, args) = op.parse_args(argv[1:]) + if os.name != "posix": + options.chroot = False + options.setuid = False if options.debug: options.verbose = True if options.ports is None: |