Merge pull request #2758 from dwarfmaster/master

Prevent unnecessary setuid call
This commit is contained in:
Benoit Chesneau 2022-03-14 18:58:23 +01:00 committed by GitHub
commit 933b210f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ def set_owner_process(uid, gid, initgroups=False):
elif gid != os.getgid():
os.setgid(gid)
if uid:
if uid and uid != os.getuid():
os.setuid(uid)