From f5dcbf9f19e52f8704bb23548498c575870cef06 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 25 Apr 2000 11:17:24 +0000 Subject: don't always ignore backslashes in paths when testing file type (10912) --- Src/Zle/compresult.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/Zle/compresult.c') 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; -- cgit 1.4.1