mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
commit
7115d37933
1 changed files with 1 additions and 1 deletions
|
@ -1376,7 +1376,7 @@ class AnsibleModule(object):
|
||||||
# based on the current value of umask
|
# based on the current value of umask
|
||||||
umask = os.umask(0)
|
umask = os.umask(0)
|
||||||
os.umask(umask)
|
os.umask(umask)
|
||||||
os.chmod(dest, 0666 ^ umask)
|
os.chmod(dest, 0666 & ~umask)
|
||||||
if switched_user:
|
if switched_user:
|
||||||
os.chown(dest, os.getuid(), os.getgid())
|
os.chown(dest, os.getuid(), os.getgid())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue