diff options
-rw-r--r-- | lr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c index 95cc098..da57ba7 100644 --- a/lr.c +++ b/lr.c @@ -2267,7 +2267,7 @@ recurse(char *path, struct history *h, int guessdir) if (need_stat) guessdir = 1; - if (guessdir && (resolve ? stat(fpath, &st) : lstat(fpath, &st) < 0)) { + if (guessdir && (resolve ? stat(fpath, &st) : lstat(fpath, &st)) < 0) { if (resolve && (errno == ENOENT || errno == ELOOP) && !lstat(fpath, &st)) { /* ignore */ |