summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 6a984fc1d8..e485c8e71e 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -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: