Commit 8ac75493 authored by Mantas Mikulėnas's avatar Mantas Mikulėnas Committed by Lennart Poettering

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

This was accidentally lost in commit 1640a0b6.
parent 182b858f
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment