mountpoint-util: fix error handling

This commit is contained in:
Lennart Poettering
2020-07-16 14:56:40 +09:00
committed by Yu Watanabe
parent 8d5bb13d78
commit 89a5385fb7
+1 -1
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);
}