index d448902909a7da216fbd49cecc505e68c0ba5e5f..6b3273d1d18298dc6cb8c08b42948af05c775221 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -692,7 +692,7 @@ int read_directory(struct dir_struct *dir, const char *path, const char *base, i
int file_exists(const char *f)
{
struct stat sb;
- return stat(f, &sb) == 0;
+ return lstat(f, &sb) == 0;
}
/*