From 3052839636f185307edb8832de9bdba4b2e2c83c Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 13 Aug 2025 17:02:16 +0200 Subject: [PATCH] smbtorture: fix locking offset in test_fruit_locking_conflict() AD_FILELOCK_RSRC_DENY_WR = AD_FILELOCK_BASE + 6 = (0x7FFFFFFFFFFFFFFF - 9) + 6 = 0x7FFFFFFFFFFFFFFC No change in behaviour though, just stumpled across it. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- source4/torture/vfs/fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 6bad4e409c6..e9ff4a57e66 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -8002,7 +8002,7 @@ static bool test_fruit_locking_conflict(struct torture_context *tctx, /* Add AD_FILELOCK_RSRC_DENY_WR lock. */ el = (struct smb2_lock_element) { - .offset = 0xfffffffffffffffc, + .offset = 0x7ffffffffffffffc, .length = 1, .flags = SMB2_LOCK_FLAG_EXCLUSIVE, }; -- 2.47.3