summaryrefslogtreecommitdiff
path: root/source4/torture/raw/chkpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw/chkpath.c')
-rw-r--r--source4/torture/raw/chkpath.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/raw/chkpath.c b/source4/torture/raw/chkpath.c
index 3364c39a73..6e128a01a4 100644
--- a/source4/torture/raw/chkpath.c
+++ b/source4/torture/raw/chkpath.c
@@ -49,7 +49,7 @@ static BOOL test_chkpath(struct cli_state *cli, TALLOC_CTX *mem_ctx)
fnum = create_complex_file(cli, mem_ctx, BASEDIR "\\test.txt");
if (fnum == -1) {
- printf("failed to open test.txt - %s\n", cli_errstr(cli));
+ printf("failed to open test.txt - %s\n", cli_errstr(cli->tree));
ret = False;
goto done;
}
@@ -101,7 +101,7 @@ static BOOL test_chkpath(struct cli_state *cli, TALLOC_CTX *mem_ctx)
CHECK_STATUS(status, NT_STATUS_OK);
done:
- cli_close(cli, fnum);
+ cli_close(cli->tree, fnum);
return ret;
}
@@ -120,12 +120,12 @@ BOOL torture_raw_chkpath(int dummy)
mem_ctx = talloc_init("torture_raw_chkpath");
- if (cli_deltree(cli, BASEDIR) == -1) {
+ if (cli_deltree(cli->tree, BASEDIR) == -1) {
printf("Failed to clean " BASEDIR "\n");
return False;
}
- if (!cli_mkdir(cli, BASEDIR)) {
- printf("Failed to create " BASEDIR " - %s\n", cli_errstr(cli));
+ if (!cli_mkdir(cli->tree, BASEDIR)) {
+ printf("Failed to create " BASEDIR " - %s\n", cli_errstr(cli->tree));
return False;
}
@@ -134,7 +134,7 @@ BOOL torture_raw_chkpath(int dummy)
}
smb_raw_exit(cli->session);
- cli_deltree(cli, BASEDIR);
+ cli_deltree(cli->tree, BASEDIR);
torture_close_connection(cli);
talloc_destroy(mem_ctx);