From 71a40d7e2c21bf3ac47be3ec57fb091ff420ba9a Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Fri, 18 Dec 2009 15:35:35 -0800 Subject: [PATCH 1/1] s4/torture: fix small bug in lock test Cleanup path should unlock, not cancel existing locked range. --- source4/torture/raw/lock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c index 0af73e503a6..7eb461048be 100644 --- a/source4/torture/raw/lock.c +++ b/source4/torture/raw/lock.c @@ -643,6 +643,7 @@ static bool test_async(struct torture_context *tctx, /* cleanup the second lock */ io.lockx.in.ulock_cnt = 1; io.lockx.in.lock_cnt = 0; + io.lockx.in.mode = LOCKING_ANDX_LARGE_FILES; io.lockx.in.locks = &lock[1]; status = smb_raw_lock(cli->tree, &io); CHECK_STATUS(status, NT_STATUS_OK); -- 2.34.1