diff options
author | Dima Kogan <dima@secretsauce.net> | 2017-11-19 17:55:59 -0800 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-11-20 09:59:51 +0000 |
commit | 487489c5225aee671077bc0ea257e5c460e675ef (patch) | |
tree | 85b8797dee1536261c37bfba9752c46debad6ce7 | |
parent | e2f793e7df7214cc3d80e2fcfe961ed087c860ab (diff) | |
download | zsh-487489c5225aee671077bc0ea257e5c460e675ef.tar.gz zsh-487489c5225aee671077bc0ea257e5c460e675ef.tar.xz zsh-487489c5225aee671077bc0ea257e5c460e675ef.zip |
stat() for glob qualifiers lost information in corner case
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/glob.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a06011793..84578a73e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-11-20 Peter Stephenson <p.stephenson@samsung.com> + * Dima Kogan: 42040: Src/glob.c: buffer for glob qualifiers + loses stat information in corner case. + * Evan Underscore / pws: 42037: Completion/bashcompinit: recent change caused wrong word to be used for COMP_POINT. diff --git a/Src/glob.c b/Src/glob.c index c9ec97e0e..66a95329f 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -387,7 +387,7 @@ insert(char *s, int checked) qn = qn->next; } } else if (!checked) { - if (statfullpath(s, NULL, 1)) { + if (statfullpath(s, &buf, 1)) { unqueue_signals(); return; } |