diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-18 05:01:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-18 05:01:10 +0000 |
commit | 9b7b5e5c516155d9606cc92bd22a958a8435ef48 (patch) | |
tree | bf528139415fa9b6588f5f35e30ee2e10aa69c3c /source4/torture/torture.c | |
parent | c88b0b2bb2c3c41b7e51db4b4dd6c1423af86de8 (diff) | |
download | samba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.tar.gz samba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.tar.bz2 samba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.zip |
use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code
(This used to be commit 16ffeb7c80bfe7f1bfbfce8c98066e9ddbca7686)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 225f1321f5..711a0ae54e 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -132,7 +132,10 @@ BOOL torture_close_connection(struct cli_state *c) } /* open a rpc connection to a named pipe */ -NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, const char *pipe_name) +NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, + const char *pipe_name, + const char *pipe_uuid, + uint32 pipe_version) { struct cli_state *cli; NTSTATUS status; @@ -145,9 +148,9 @@ NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, const char *pipe_name) return NT_STATUS_NO_MEMORY; } - status = dcerpc_pipe_open_smb(*p, pipe_name); + status = dcerpc_pipe_open_smb(*p, pipe_name, pipe_uuid, pipe_version); if (!NT_STATUS_IS_OK(status)) { - printf("Open of pipe %s failed with error (%s)\n", + printf("Open of pipe '%s' failed with error (%s)\n", pipe_name, nt_errstr(status)); return status; } @@ -2817,7 +2820,7 @@ static BOOL run_rename(int dummy) static BOOL run_pipe_number(int dummy) { struct cli_state *cli1; - const char *pipe_name = "\\SPOOLSS"; + const char *pipe_name = "\\WKSSVC"; int fnum; int num_pipes = 0; |