s3: selftest: Add new SMB1-only wildcard rename regression test.
commit43d30ddb1bd8b3638f48758a3d2a8eebcbef77fd
authorJeremy Allison <jra@samba.org>
Mon, 5 Oct 2020 17:52:46 +0000 (5 10:52 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 8 Oct 2020 15:07:30 +0000 (8 15:07 +0000)
tree030270f3744a83e7c8f3f20c8c8702930abae35e
parentf3281e0befb43224010f2940230a5a2b54fea4c4
s3: selftest: Add new SMB1-only wildcard rename regression test.

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

knownfail for now.

The recent wildcard changes broke something that used to work.

Consider a directory with 2 files:

dir/
foo
fo*

The 'fo*' file has a mangled name of FSHCRD~2.

SMB1rename("dir/FSHCRD~2", "dir/ba*") will rename *both* files
as the new 'rename has wildcard' check is done after
the name unmangle.

SMB2 doesn't allow wildcard renames so doesn't have this problem.

Fix to follow.

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