1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3: torture: In run_smb1_wild_mangle_unlink_test() use torture_deltree() for setup and cleanup.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-12-01 12:51:54 -08:00 committed by Ralph Boehme
parent a0bfb37b4b
commit 3a73178fe4

View File

@ -12858,10 +12858,7 @@ static bool run_smb1_wild_mangle_unlink_test(int dummy)
}
/* Start fresh. */
cli_unlink(cli,
star_name,
FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
cli_rmdir(cli, dname);
torture_deltree(cli, dname);
/*
* Create two files - 'a' and '*'.
@ -12971,10 +12968,7 @@ static bool run_smb1_wild_mangle_unlink_test(int dummy)
TALLOC_FREE(mangled_name);
if (cli != NULL) {
cli_unlink(cli,
star_name,
FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
cli_rmdir(cli, dname);
torture_deltree(cli, dname);
torture_close_connection(cli);
}