about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 052bc29..2e9ad47 100644
--- a/lr.c
+++ b/lr.c
@@ -1868,7 +1868,8 @@ recurse(char *path, struct history *h)
 	int root = (path[0] == '/' && path[1] == 0);
 
 	if (resolve ? stat(fpath, &st) : lstat(fpath, &st) < 0) {
-		if (resolve && errno == ENOENT && !lstat(fpath, &st)) {
+		if (resolve && (errno == ENOENT || errno == ELOOP) &&
+		    !lstat(fpath, &st)) {
 			/* ignore */
 		} else if (!h) {
 			/* warn for toplevel arguments */