X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fpath-util.c;h=e485c8e71e46c7a47795842010900f50d5cf54f3;hp=6a984fc1d822db741d00ddf34b6dc49d559ff604;hb=646ccf657ac4b1aaeedfc06952f4d78d2e4f7d02;hpb=34da583ada206b2d4b5431a90c67a771c62e604d diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 6a984fc1d..e485c8e71 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: