mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Use file list, not recursion, in _fixup_perms. (#16924)
Run setfacl/chown/chmod on each temp dir and file. This fixes temp file permissions handling on platforms such as FreeBSD which always return success when using find -exec. This is done by eliminating the use of find when setting up temp files and directories. Additionally, tests that now pass on FreeBSD have been enabled for CI.
This commit is contained in:
@@ -68,13 +68,13 @@ class ShellModule(object):
|
||||
path = self._unquote(path)
|
||||
return path.endswith('/') or path.endswith('\\')
|
||||
|
||||
def chmod(self, mode, path, recursive=True):
|
||||
def chmod(self, paths, mode):
|
||||
raise NotImplementedError('chmod is not implemented for Powershell')
|
||||
|
||||
def chown(self, path, user, group=None, recursive=True):
|
||||
def chown(self, paths, user):
|
||||
raise NotImplementedError('chown is not implemented for Powershell')
|
||||
|
||||
def set_user_facl(self, path, user, mode, recursive=True):
|
||||
def set_user_facl(self, paths, user, mode):
|
||||
raise NotImplementedError('set_user_facl is not implemented for Powershell')
|
||||
|
||||
def remove(self, path, recurse=False):
|
||||
|
||||
Reference in New Issue
Block a user