diff options
-rw-r--r-- | source3/torture/locktest.c | 4 | ||||
-rw-r--r-- | source3/torture/masktest.c | 4 | ||||
-rw-r--r-- | source3/torture/torture.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index c3c0ce6380..e5189c44f2 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -242,8 +242,8 @@ static struct cli_state *connect_one(char *share, int snum) DEBUG(4,(" session setup ok\n")); - status = cli_tcon_andx(c, share, "?????", password[snum], - strlen(password[snum])+1); + status = cli_tree_connect(c, share, "?????", password[snum], + strlen(password[snum])+1); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("tree connect failed: %s\n", nt_errstr(status))); cli_shutdown(c); diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index 5f0699f6fa..35ec0820e9 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -225,8 +225,8 @@ static struct cli_state *connect_one(char *share) DEBUG(4,(" session setup ok\n")); - status = cli_tcon_andx(c, share, "?????", password, - strlen(password)+1); + status = cli_tree_connect(c, share, "?????", password, + strlen(password)+1); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("tree connect failed: %s\n", nt_errstr(status))); cli_shutdown(c); diff --git a/source3/torture/torture.c b/source3/torture/torture.c index db8f1cd20f..64b1e930f4 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -1399,8 +1399,8 @@ static bool run_tcon_test(int dummy) return False; } - status = cli_tcon_andx(cli, share, "?????", - password, strlen(password)+1); + status = cli_tree_connect(cli, share, "?????", + password, strlen(password)+1); if (!NT_STATUS_IS_OK(status)) { printf("%s refused 2nd tree connect (%s)\n", host, nt_errstr(status)); @@ -1525,8 +1525,8 @@ static bool tcon_devtest(struct cli_state *cli, NTSTATUS status; bool ret; - status = cli_tcon_andx(cli, myshare, devtype, - password, strlen(password)+1); + status = cli_tree_connect(cli, myshare, devtype, + password, strlen(password)+1); if (NT_STATUS_IS_OK(expected_error)) { if (NT_STATUS_IS_OK(status)) { @@ -2845,7 +2845,7 @@ static bool run_fdsesstest(int dummy) return False; saved_cnum = cli_state_get_tid(cli); - if (!NT_STATUS_IS_OK(cli_tcon_andx(cli, share, "?????", "", 1))) + if (!NT_STATUS_IS_OK(cli_tree_connect(cli, share, "?????", "", 1))) return False; new_cnum = cli_state_get_tid(cli); cli_state_set_tid(cli, saved_cnum); |