From b2b737c13ea1cb2f05583835f15a528572b04c16 Mon Sep 17 00:00:00 2001 From: Jordan Tucker Date: Tue, 24 Oct 2017 21:53:07 -0500 Subject: Handle chroot/setuid options correctly when os.name != "posix" --- miniircd | 6 +++--- 1 file 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: -- cgit v1.2.3