community.general/lib/ansible/modules/files
Martin Krizek d15812fabf
Fix copy module to reset filesystem acls (#51868)
The controller's fixup_perms2 uses filesystem acls to make the temporary
file for copy readable by an unprivileged become user. On Python3, the
acls are then copied to the destination filename so we have to remove
them from there.

We can't remove them prior to the copy because we may not have
permission to read the file if the acls are not present. We can't
remove them in atomic_move() because the move function shouldn't know
anything about controller features. We may want to generalize this into
a helper function, though.

Fixes #44412

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-04-03 18:37:59 +02:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
acl.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
archive.py Add force_archive option to archive module to allow archiving and compression of single files (#49429) 2019-03-19 21:11:08 -04:00
assemble.py assemble: avoid extra newline on Python 3 (#54176) 2019-03-22 09:14:02 -05:00
blockinfile.py blockinfile: don't use aliases in documentation exemples (#52220) 2019-02-18 15:19:49 -05:00
copy.py Fix copy module to reset filesystem acls (#51868) 2019-04-03 18:37:59 +02:00
fetch.py Clarify source of the host name (#54693) 2019-04-01 17:44:12 -04:00
file.py Fix file path encoding bugs on Python 3. 2019-03-28 08:54:49 -07:00
find.py Clarify restrictions of excludes property in find module. (#49549) 2019-02-26 16:06:06 -05:00
ini_file.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
iso_extract.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
lineinfile.py Revert "Use locking for concurrent file access (#52567)" (#54547) 2019-03-28 13:19:49 -04:00
patch.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
read_csv.py Sanity fixes in various modules (#50080) 2018-12-18 09:53:46 -06:00
replace.py replace - fixed combined before and after usage (#31452) 2019-03-26 11:49:58 -04:00
stat.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
synchronize.py validate-modules: Fix some files modules (#52440) 2019-02-25 13:29:31 +01:00
tempfile.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
template.py template: add additional variable for dest path (#52015) 2019-02-19 14:15:19 +05:30
unarchive.py Add two more failure conditions to unarchive (#51914) 2019-02-13 13:40:26 -05:00
xattr.py Fix parameter types and other fixes (#50111) 2019-01-18 03:24:47 +01:00
xml.py Warn on incorrect use of parameter, and remove fix for now (#54336) 2019-03-29 15:13:19 +01:00