git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idx
[kai/samba.git]
/
source3
/
utils
/
net_rpc_shell.c
diff --git
a/source3/utils/net_rpc_shell.c
b/source3/utils/net_rpc_shell.c
index 6abdb03c48d02ac882bcd21bdedccd78542c5de0..c6051dc97685cbc2301e1774098f3c7e6d0f82e9 100644
(file)
--- a/
source3/utils/net_rpc_shell.c
+++ b/
source3/utils/net_rpc_shell.c
@@
-78,8
+78,7
@@
static NTSTATUS net_sh_run(struct net_context *c,
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- status = cli_rpc_pipe_open_noauth(ctx->cli,
- cli_get_iface(cmd->pipe_idx),
+ status = cli_rpc_pipe_open_noauth(ctx->cli, cmd->interface,
&pipe_hnd);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "Could not open pipe: %s\n",
&pipe_hnd);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "Could not open pipe: %s\n",
@@
-189,7
+188,7
@@
static bool net_sh_process(struct net_context *c,
static struct rpc_sh_cmd sh_cmds[6] = {
static struct rpc_sh_cmd sh_cmds[6] = {
- { "info", NULL,
PI_SAMR
, rpc_sh_info,
+ { "info", NULL,
&ndr_table_samr.syntax_id
, rpc_sh_info,
"Print information about the domain connected to" },
{ "rights", net_rpc_rights_cmds, 0, NULL,
"Print information about the domain connected to" },
{ "rights", net_rpc_rights_cmds, 0, NULL,