mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
s3:torture: make use of cli_tree_connect()
metze
This commit is contained in:
parent
c6ed8e3211
commit
2d9a8898f2
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user