mirror of https://github.com/ansible/ansible.git
Unarchive stop passing file mode to tar command (#4179)
Fixes #4063. Tar does not use this parameter on extraction (-x) or diff (-d)(the only two cases where it is passed in unarchive). It only uses it on creation: https://www.gnu.org/software/tar/manual/html_section/tar_33.html Providing `unarchive` with a file mode of `0755` (octal) makes it pass the argument `--mode 493` (493 = 0755 in decimal) to `tar`, which then fails while verifying it (because it contains an invalid octal char '9'). Not passing the parameter to tar solves the issue.reviewable/pr18780/r1
parent
c354c974e7
commit
1f741b69f4
Loading…
Reference in New Issue