about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-12-05 00:25:55 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2014-12-07 11:20:01 -0800
commit9ddd022ff03efd90bac9f1057e61ad74b5cdbc9a (patch)
treece88a4fb72b744acc7eba821cfd2186a87f41258 /Src
parent908abba89147f8a4e4991c4464a95ee90d1078f6 (diff)
downloadzsh-9ddd022ff03efd90bac9f1057e61ad74b5cdbc9a.tar.gz
zsh-9ddd022ff03efd90bac9f1057e61ad74b5cdbc9a.tar.xz
zsh-9ddd022ff03efd90bac9f1057e61ad74b5cdbc9a.zip
33854: errors end recursion through scanner()
Makes **/ more easily interruptible
Diffstat (limited to 'Src')
-rw-r--r--Src/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c
index ca7bc4410..b3903f2ff 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -463,7 +463,7 @@ scanner(Complist q, int shortcircuit)
     int errssofar = errsfound;
     struct dirsav ds;
 
-    if (!q)
+    if (!q || errflag)
 	return;
     init_dirsav(&ds);