path-util: if parent can do name_to_handle() but relevant dir not, it's a mount point

This commit is contained in:
Lennart Poettering
2015-04-06 10:57:53 +02:00
parent f25afeb6ab
commit 8f06b239f2
+6 -1
View File
@@ -515,7 +515,12 @@ int fd_is_mount_point(int fd) {
return 1;
} else
return -errno;
} else
} else if (nosupp)
/* The parent can do name_to_handle_at() but the
* directory we are interested in can't? If so, it
* must be a mount point. */
return 1;
else
return mount_id != mount_id_parent;
fallback: