path-util: do not fail in path_is_mountpoint() if path doesn't exist

This was accidentally lost in commit 1640a0b6b0.
This commit is contained in:
Mantas Mikulėnas 2012-09-09 15:16:18 +03:00 committed by Lennart Poettering
parent 182b858fc2
commit 8ac7549330

View file

@ -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)