From 3be410703d4aa3a2c42f4b8b806fd769b18d0b61 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 10 Sep 2022 23:19:36 +0200 Subject: recurse: fix error detection --- lr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit 1.4.1