From: Lennart Poettering Date: Wed, 25 Feb 2026 12:08:48 +0000 (+0100) Subject: mountwork: use statx_mount_same() where appropriate X-Git-Tag: v260-rc2~23^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d61bb671de3b096a5b3eee7e5f1de50e2bc1a41;p=thirdparty%2Fsystemd.git mountwork: use statx_mount_same() where appropriate --- diff --git a/src/mountfsd/mountwork.c b/src/mountfsd/mountwork.c index 7115f33e36b..2e75ac532f8 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