about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-25 11:17:24 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-25 11:17:24 +0000
commitf5dcbf9f19e52f8704bb23548498c575870cef06 (patch)
tree848bdf9ba9832e4ca68eb0cea7bb4782b9bb6d94 /Src/Zle
parent2f90974c38247cfcbcea034aaa861a3ed700bdc5 (diff)
downloadzsh-f5dcbf9f19e52f8704bb23548498c575870cef06.tar.gz
zsh-f5dcbf9f19e52f8704bb23548498c575870cef06.tar.xz
zsh-f5dcbf9f19e52f8704bb23548498c575870cef06.zip
don't always ignore backslashes in paths when testing file type (10912)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compresult.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 3875987c5..8c09a9491 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -705,6 +705,9 @@ ztat(char *nam, struct stat *buf, int ls)
 {
     char b[PATH_MAX], *p;
 
+    if (!(ls ? lstat(nam, buf) : stat(nam, buf)))
+	return 0;
+
     for (p = b; p < b + sizeof(b) - 1 && *nam; nam++)
 	if (*nam == '\\' && nam[1])
 	    *p++ = *++nam;