s3: selftest: Add new SMB1-only wildcard unlink regression test.
authorJeremy Allison <jra@samba.org>
Mon, 5 Oct 2020 17:29:16 +0000 (10:29 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 8 Oct 2020 15:07:30 +0000 (15:07 +0000)
commitf3281e0befb43224010f2940230a5a2b54fea4c4
tree6c2ecdde9c285b272bed2092931818f3954d3d1e
parent728dd396f81a4a9e48c4828586574c3743db0d5c
s3: selftest: Add new SMB1-only wildcard unlink regression test.

samba3.smbtorture_s3.crypt_client.SMB1-WILD-MANGLE-UNLINK(nt4_dc_smb1)
samba3.smbtorture_s3.plain.SMB1-WILD-MANGLE-UNLINK(fileserver_smb1)

knownfail for now.

The recent wildcard changes broke something that used to work.

Consider a directory with 2 files:

dir/
         a
         *

The '*' file has a mangled name of _2X68P~X.

SMB1unlink("_2X68P~X") will delete *both* files
as the new 'unlink has wildcard' check is done after
the name unmangle.

SMB2 doesn't suffer from this problem, as it doesn't
allow wildcard unlinks.

Fix to follow.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/knownfail.d/smb1-wild-mangle-unlink [new file with mode: 0644]
selftest/skip
source3/selftest/tests.py
source3/torture/torture.c