module pamd hardcodes path to temp directory #36954
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Mac OS X 10.12.6
SUMMARY
The pamd module is hardcoding references to a '/tmp' directory instead of using Python's tempfile.
It assumes that /tmp is the always the TMP directory, which is not the case.
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/system/pamd.py#L387
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: