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:
parent
182b858fc2
commit
8ac7549330
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue