Prevent unnecessary setuid call

This commit is contained in:
DwarfMaster 2022-03-13 17:16:32 +01:00
parent 1aae54a8e1
commit cc3238c6ff

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)