Avoid needlessly triggering non-false return from issetugid on MacOSX

This commit is contained in:
Andy Wilcox 2018-01-02 13:12:12 -08:00
parent 6171ac4885
commit 32992a88f9

View File

@ -161,7 +161,7 @@ def set_owner_process(uid, gid, initgroups=False):
if initgroups:
os.initgroups(username, gid)
else:
elif gid != os.getgid():
os.setgid(gid)
if uid: