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:
parent
8d5bb13d78
commit
89a5385fb7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user