s4: torture: Use smbcli_unlink_wcard() to remove wildcards in base.chkpath test.
authorJeremy Allison <jra@samba.org>
Thu, 2 Dec 2021 01:52:37 +0000 (17:52 -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>
source4/torture/basic/base.c

index e91fef1d6c2381d39a0746953393185b330f81df..232ba9c5cb3cc00b0dea30012e0697e4583bae3a 100644 (file)
@@ -1461,7 +1461,7 @@ static bool torture_chkpath_test(struct torture_context *tctx,
 
        /* cleanup from an old run */
        smbcli_rmdir(cli->tree, "\\chkpath.dir\\dir2");
-       smbcli_unlink(cli->tree, "\\chkpath.dir\\*");
+       smbcli_unlink_wcard(cli->tree, "\\chkpath.dir\\*");
        smbcli_rmdir(cli->tree, "\\chkpath.dir");
 
        if (NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, "\\chkpath.dir"))) {
@@ -1516,7 +1516,7 @@ static bool torture_chkpath_test(struct torture_context *tctx,
        }
 
        smbcli_rmdir(cli->tree, "\\chkpath.dir\\dir2");
-       smbcli_unlink(cli->tree, "\\chkpath.dir\\*");
+       smbcli_unlink_wcard(cli->tree, "\\chkpath.dir\\*");
        smbcli_rmdir(cli->tree, "\\chkpath.dir");
 
        return ret;