summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2012-09-09 15:16:18 +0300
committerLennart Poettering <lennart@poettering.net>2012-09-10 09:21:10 +0200
commit8ac7549330c774b8ca04034c1303165fe6a920b0 (patch)
tree5383613ffd7ec4fbf7037d0452c206c566144bee
parent182b858fc2e61e34cd9911c291580659b2cb72b4 (diff)
path-util: do not fail in path_is_mountpoint() if path doesn't exist
This was accidentally lost in commit 1640a0b6b05b.
-rw-r--r--src/shared/path-util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 39f77f6454..97a200504b 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -387,8 +387,12 @@ fallback:
else
r = lstat(t, &a);
- if (r < 0)
+ if (r < 0) {
+ if (errno == ENOENT)
+ return 0;
+
return -errno;
+ }
r = path_get_parent(t, &parent);
if (r < 0)