]> git.ipfire.org Git - thirdparty/samba.git/commit
s4: torture: Add new SMB2 lease test test_lease_duplicate_create().
authorJeremy Allison <jra@samba.org>
Thu, 17 Feb 2022 17:58:27 +0000 (09:58 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 18 Feb 2022 19:12:30 +0000 (19:12 +0000)
commitbf22548d11fe67ea3f4ec10dff81773d626e4703
tree89fdc739eb87822cb7db65642edb2d6b955858a7
parenta7c3213523d6eaf2f6945dfe48c83cea2df9ca0c
s4: torture: Add new SMB2 lease test test_lease_duplicate_create().

Checks we return INVALID_PARAMETER when trying to create a
new file with a duplicate lease key on the same share.

Checked against Windows10. Samba already passes this
but we didn't have a test before.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14737

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
source4/torture/smb2/lease.c