Fix setfacl for Solaris with POSIX acl support.
Tested on Linux and freebsd.
Fixes #17919
(cherry picked from commit d90638ad40
)
This commit is contained in:
parent
529adb574a
commit
f62224497e
1 changed files with 5 additions and 2 deletions
|
@ -359,9 +359,12 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
# Try to use file system acls to make the files readable for sudo'd
|
||||
# user
|
||||
if execute:
|
||||
mode = 'rx'
|
||||
mode = 'r-x'
|
||||
else:
|
||||
mode = 'rX'
|
||||
### Note: this form fails silently on freebsd. We currently
|
||||
# never call _fixup_perms2() with execute=False but if we
|
||||
# start to we'll have to fix this.
|
||||
mode = 'r-X'
|
||||
|
||||
res = self._remote_set_user_facl(remote_paths, self._play_context.become_user, mode)
|
||||
if res['rc'] != 0:
|
||||
|
|
Loading…
Reference in a new issue