Merge pull request #1672 from andywilco/avoid_issetugid

Avoid needlessly triggering true return from issetugid on MacOSX
This commit is contained in:
Benoit Chesneau 2018-01-07 18:22:05 +01:00 committed by GitHub
commit 5c92093219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: