From 4c6cfb9eec07b0dd0a76bbc6235d1b75b5456c9b Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 10 Aug 2016 17:54:29 -0400 Subject: [PATCH] Improve regexp for matching file permissions (#4306) A capital "S" appears when the the setuid or setgid bit are set but have no effect. Likewise, a capital "T" appears when the sticky bit is set but it has no effect. --- lib/ansible/modules/files/unarchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index f4dfeeede82..d99cd2a0c25 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -143,7 +143,7 @@ MODE_DIFF_RE = re.compile(r': Mode differs$') MOD_TIME_DIFF_RE = re.compile(r': Mod time differs$') #NEWER_DIFF_RE = re.compile(r' is newer or same age.$') MISSING_FILE_RE = re.compile(r': Warning: Cannot stat: No such file or directory$') -ZIP_FILE_MODE_RE = re.compile(r'([r-][w-][stx-]){3}') +ZIP_FILE_MODE_RE = re.compile(r'([r-][w-][SsTtx-]){3}') # When downloading an archive, how much of the archive to download before # saving to a tempfile (64k) BUFSIZE = 65536