aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib.c b/lib/lib.c
index b89f2db8..1066ef9a 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -393,6 +393,7 @@ char *xabspath(char *path, int exact)
if ((exact || todo) && errno != EINVAL) goto error;
new->next = done;
done = new;
+ if (errno == EINVAL && !todo) break;
s = new->str;
}
fd = openat(dirfd, s, 0);