mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2758 from dwarfmaster/master
Prevent unnecessary setuid call
This commit is contained in:
commit
933b210f2e
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user