You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
8 years ago
..
cli Fix ansible-console always asking for vault passwords 8 years ago
compat Enable wildcard import pylint (#35786) 8 years ago
config better sudo/su deprecation on config entries (#36074) 8 years ago
errors Make AnsibleActionDone a private exception 8 years ago
executor fix loop_control templating (#36124) 8 years ago
galaxy galaxy remove incorrect check for role path before extraction (#35259) 8 years ago
inventory remove new tmp var for localhost 8 years ago
module_utils aci_rest: Fix error handling and improve documentation (#36295) 8 years ago
modules Update zabbix_host.py (#36127) 8 years ago
parsing Only template each hostvars var on-demand (fixes #33259) 8 years ago
playbook fix loop_control templating (#36124) 8 years ago
plugins Fix the script and patch plugins tempfile ownership 8 years ago
template Only template each hostvars var on-demand (fixes #33259) 8 years ago
utils Fix digital ocean issues (#36347) 8 years ago
vars vars.clean: remove unused method inject_facts (#34838) 8 years ago
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 10 years ago
constants.py Move module_set_locale and module_lang back to global 8 years ago
release.py Fix version in lib/ansible/release.py 8 years ago