mount-util: fix fd_is_mount_point() when both the parent and directory are network fs
authorFranck Bui <fbui@suse.com>
Thu, 30 Sep 2021 12:05:36 +0000 (14:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 1 Oct 2021 09:11:45 +0000 (11:11 +0200)
commit964ccab8286a7e75d7e9107f574f5cb23752bd5d
treeec811776bf86b05f8218286b18fcd10c65e4017b
parent8e9b3bcf124b0d08b5e6f5532655fee3a238b674
mount-util: fix fd_is_mount_point() when both the parent and directory are network fs

The second call to name_to_handle_at_loop() didn't check for the specific
errors that can happen when the parent dir is mounted by nfs and instead of
falling back like it's done for the child dir, fd_is_mount_point() failed in
this case.
src/basic/mountpoint-util.c