]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4: torture: Remove the wildcard rename test code.
authorJeremy Allison <jra@samba.org>
Wed, 1 Dec 2021 21:22:39 +0000 (13:22 -0800)
committerRalph Boehme <slow@samba.org>
Thu, 9 Dec 2021 18:06:35 +0000 (18:06 +0000)
This is pre WindowXP SMB1 functionality, and we
need to remove this from the server in order to
move towards SMB2-only, so the test must go.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/raw/rename.c

index 63e13c0546f31c87b6446caa49ab1050303fc063..5f48c0559847712e49f2d362513883ca8c23320f 100644 (file)
@@ -146,39 +146,6 @@ static bool test_mv(struct torture_context *tctx,
        status = smb_raw_rename(cli->tree, &io);
        CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
 
-
-       torture_comment(tctx, "trying wildcard rename\n");
-       io.rename.in.pattern1 = BASEDIR "\\*.txt";
-       io.rename.in.pattern2 = fname1;
-       
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_OK);
-
-       torture_comment(tctx, "and again\n");
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_OK);
-
-       torture_comment(tctx, "Trying extension change\n");
-       io.rename.in.pattern1 = BASEDIR "\\*.txt";
-       io.rename.in.pattern2 = BASEDIR "\\*.bak";
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_OK);
-
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_NO_SUCH_FILE);
-
-       torture_comment(tctx, "Checking attrib handling\n");
-       torture_set_file_attribute(cli->tree, BASEDIR "\\test1.bak", FILE_ATTRIBUTE_HIDDEN);
-       io.rename.in.pattern1 = BASEDIR "\\test1.bak";
-       io.rename.in.pattern2 = BASEDIR "\\*.txt";
-       io.rename.in.attrib = 0;
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_NO_SUCH_FILE);
-
-       io.rename.in.attrib = FILE_ATTRIBUTE_HIDDEN;
-       status = smb_raw_rename(cli->tree, &io);
-       CHECK_STATUS(status, NT_STATUS_OK);
-
 done:
        smbcli_close(cli->tree, fnum);
        smb_raw_exit(cli->session);