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.
pull/18777/head
Sam Doran 8 years ago committed by Matt Clay
parent 7b547e3e0b
commit 4c6cfb9eec

@ -143,7 +143,7 @@ MODE_DIFF_RE = re.compile(r': Mode differs$')
MOD_TIME_DIFF_RE = re.compile(r': Mod time differs$') MOD_TIME_DIFF_RE = re.compile(r': Mod time differs$')
#NEWER_DIFF_RE = re.compile(r' is newer or same age.$') #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$') 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 # When downloading an archive, how much of the archive to download before
# saving to a tempfile (64k) # saving to a tempfile (64k)
BUFSIZE = 65536 BUFSIZE = 65536

Loading…
Cancel
Save