summary refs log tree commit diff
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2017-11-19 17:55:59 -0800
committerPeter Stephenson <pws@zsh.org>2017-11-20 09:59:51 +0000
commit487489c5225aee671077bc0ea257e5c460e675ef (patch)
tree85b8797dee1536261c37bfba9752c46debad6ce7
parente2f793e7df7214cc3d80e2fcfe961ed087c860ab (diff)
downloadzsh-487489c5225aee671077bc0ea257e5c460e675ef.tar.gz
zsh-487489c5225aee671077bc0ea257e5c460e675ef.tar.xz
zsh-487489c5225aee671077bc0ea257e5c460e675ef.zip
stat() for glob qualifiers lost information in corner case
-rw-r--r--ChangeLog3
-rw-r--r--Src/glob.c2
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;
 	}