ansible/lib/ansible
Toshio Kuratomi edaeb69a35 Fix the script and patch plugins tempfile ownership
Unified tmp accidentally removed the containing tmpdir from the list of
files to fix the permissions on when we're becoming a different
unprivileged user.  This resulted in a visible bug for script but not
for patch.  This is because patch also uploads the module to the same
temporary directory and the uploaded module also ends up calling
fixup_perms2() which includes the temporary directory.  So by the time
patch needs to access the temporary patch file, the directory is
appropriately set.

script's breakage was visible because script does not upload a module
(it's akin to raw in this way).  Therefore, we only call fixup_perms2()
once in script and so leaving out the tmpdir in script means that the
containing directory never has its permissions set appropriately.

Fixing both because it does not cause an extra round trip for patch so
any speedup would be minimal and it's better to fix the perms as close
as possible to where we know we need it.  Otherwise, changes to
seemingly unrelated code later could end up breaking it.

Fixes #36398
2018-02-19 13:07:58 -08:00
..
cli Fix ansible-console always asking for vault passwords 2018-02-15 15:40:51 -05:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config better sudo/su deprecation on config entries (#36074) 2018-02-14 20:26:10 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor fix loop_control templating (#36124) 2018-02-14 15:52:19 -05:00
galaxy galaxy remove incorrect check for role path before extraction (#35259) 2018-01-30 10:40:25 -06:00
inventory remove new tmp var for localhost 2018-02-07 16:16:10 -05:00
module_utils aci_rest: Fix error handling and improve documentation (#36295) 2018-02-19 12:01:14 +01:00
modules Update zabbix_host.py (#36127) 2018-02-19 11:25:38 -05:00
parsing Only template each hostvars var on-demand (fixes #33259) 2018-02-15 10:09:04 -05:00
playbook fix loop_control templating (#36124) 2018-02-14 15:52:19 -05:00
plugins Fix the script and patch plugins tempfile ownership 2018-02-19 13:07:58 -08:00
template Only template each hostvars var on-demand (fixes #33259) 2018-02-15 10:09:04 -05:00
utils Fix digital ocean issues (#36347) 2018-02-17 22:48:52 +05:30
vars vars.clean: remove unused method inject_facts (#34838) 2018-02-15 07:43:44 -08:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00