From 8ac7549330c774b8ca04034c1303165fe6a920b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mantas=20Mikul=C4=97nas?= Date: Sun, 9 Sep 2012 15:16:18 +0300 Subject: [PATCH] path-util: do not fail in path_is_mountpoint() if path doesn't exist This was accidentally lost in commit 1640a0b6b05b. --- src/shared/path-util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2