diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-31 17:49:29 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:32 +0100 |
commit | 2d9a8898f27b3d80851c7bd99b525118abeb92bc (patch) | |
tree | 608f7cf0b20b2921e3f80b18ba69b003c141626e /source3/torture | |
parent | c6ed8e3211aa22e4a2a88ddb6a98c79e6c11dee7 (diff) | |
download | samba-2d9a8898f27b3d80851c7bd99b525118abeb92bc.tar.gz samba-2d9a8898f27b3d80851c7bd99b525118abeb92bc.tar.bz2 samba-2d9a8898f27b3d80851c7bd99b525118abeb92bc.zip |
s3:torture: make use of cli_tree_connect()
metze
Diffstat (limited to 'source3/torture')
-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); |