mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix incorrect variable name
This commit is contained in:
parent
ce2e4027d5
commit
6216d17e5a
@ -312,7 +312,7 @@ def zip_(zip_file, sources, template=None, cwd=None, runas=None):
|
||||
except AttributeError:
|
||||
_bad_cwd()
|
||||
|
||||
if runas and (euid != uinfo['uid'] or guid != uinfo['gid']):
|
||||
if runas and (euid != uinfo['uid'] or egid != uinfo['gid']):
|
||||
# Change the egid first, as changing it after the euid will fail
|
||||
# if the runas user is non-privileged.
|
||||
os.setegid(uinfo['gid'])
|
||||
@ -496,7 +496,7 @@ def unzip(zip_file, dest, excludes=None, template=None, runas=None):
|
||||
|
||||
zip_file, dest = _render_filenames(zip_file, dest, None, template)
|
||||
|
||||
if runas and (euid != uinfo['uid'] or guid != uinfo['gid']):
|
||||
if runas and (euid != uinfo['uid'] or egid != uinfo['gid']):
|
||||
# Change the egid first, as changing it after the euid will fail
|
||||
# if the runas user is non-privileged.
|
||||
os.setegid(uinfo['gid'])
|
||||
|
Loading…
Reference in New Issue
Block a user