summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 3df0c0c54a..5f6e707a81 100644
--- a/dir.c
+++ b/dir.c
@@ -671,7 +671,7 @@ glob_helper(path, sub, flags, func, arg)
#else
if (!(flags & FNM_NOESCAPE)) remove_backslashes(p);
#endif
- if (stat(path, &st) == 0) {
+ if (lstat(path, &st) == 0) {
(*func)(path, arg);
}
else if (errno != ENOENT) {