]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: torture: In run_smb1_wild_mangle_unlink_test() use torture_deltree() for setup...
authorJeremy Allison <jra@samba.org>
Wed, 1 Dec 2021 20:51:54 +0000 (12:51 -0800)
committerRalph Boehme <slow@samba.org>
Thu, 9 Dec 2021 18:06:35 +0000 (18:06 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/torture/torture.c

index 60c4df730c509a9b9011b559df96497189d78da8..c03c5b953b1d10c23a26d0e2b1d9f0b39e431709 100644 (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);
        }