1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

mountpoint-util: fix error handling

This commit is contained in:
Lennart Poettering 2020-07-15 17:43:10 +02:00 committed by Yu Watanabe
parent 8d5bb13d78
commit 89a5385fb7

View File

@ -272,7 +272,7 @@ int path_is_mount_point(const char *t, const char *root, int flags) {
fd = open_parent(t, O_PATH|O_CLOEXEC, 0);
if (fd < 0)
return -errno;
return fd;
return fd_is_mount_point(fd, last_path_component(t), flags);
}