From: Mantas Mikulėnas Date: Sun, 9 Sep 2012 12:16:18 +0000 (+0300) Subject: path-util: do not fail in path_is_mountpoint() if path doesn't exist X-Git-Tag: v190~153 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8ac7549330c774b8ca04034c1303165fe6a920b0;p=elogind.git path-util: do not fail in path_is_mountpoint() if path doesn't exist This was accidentally lost in commit 1640a0b6b05b. --- diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 39f77f645..97a200504 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)