From: Ralph Boehme Date: Wed, 13 Aug 2025 15:02:16 +0000 (+0200) Subject: smbtorture: fix locking offset in test_fruit_locking_conflict() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3052839636f185307edb8832de9bdba4b2e2c83c;p=thirdparty%2Fsamba.git 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 --- 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, };