From 6d61bb671de3b096a5b3eee7e5f1de50e2bc1a41 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 25 Feb 2026 13:08:48 +0100 Subject: [PATCH] mountwork: use statx_mount_same() where appropriate --- src/mountfsd/mountwork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mountfsd/mountwork.c b/src/mountfsd/mountwork.c index 7115f33e36..2e75ac532f 100644 --- a/src/mountfsd/mountwork.c +++ b/src/mountfsd/mountwork.c @@ -947,7 +947,7 @@ static DirectoryOwnership validate_directory_fd( return DIRECTORY_IS_OTHERWISE_OWNED; } - if (stx.stx_mnt_id != new_stx.stx_mnt_id) { + if (!statx_mount_same(&stx, &new_stx)) { /* NB, this check is probably redundant, given we also check * STATX_ATTR_MOUNT_ROOT. The only reason we have it here is to provide extra safety * in case the mount tree is rearranged concurrently with our traversal, so that