From: Jeremy Allison Date: Wed, 1 Dec 2021 21:22:39 +0000 (-0800) Subject: s4: torture: Remove the wildcard rename test code. X-Git-Tag: tdb-1.4.6~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb4e998346db1bbaa7c6be7edbba17b9b07f5765;p=thirdparty%2Fsamba.git s4: torture: Remove the wildcard rename test code. 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 Reviewed-by: Ralph Boehme --- diff --git a/source4/torture/raw/rename.c b/source4/torture/raw/rename.c index 63e13c0546f..5f48c055984 100644 --- a/source4/torture/raw/rename.c +++ b/source4/torture/raw/rename.c @@ -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);