summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorJordan Tucker <jordantucker@gmail.com>2017-10-24 21:53:07 -0500
committerJoel Rosdahl <joel@rosdahl.net>2017-11-02 22:44:02 +0100
commitb2b737c13ea1cb2f05583835f15a528572b04c16 (patch)
treeb7b080a86dc7f2998363df3515d931c425cb665e /miniircd
parent4de216e87317b66714d183f5549557dad381d866 (diff)
downloadminiircd-b2b737c13ea1cb2f05583835f15a528572b04c16.tar.gz
miniircd-b2b737c13ea1cb2f05583835f15a528572b04c16.zip
Handle chroot/setuid options correctly when os.name != "posix"
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd6
1 files changed, 3 insertions, 3 deletions
diff --git a/miniircd b/miniircd
index 0be254d..d25c001 100755
--- a/miniircd
+++ b/miniircd
@@ -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: