The Samba-Bugzilla – Attachment 10934 Details for
Bug 11199
The timeout command in rpcclient doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for master
0001-rpcclient-Fix-the-timeout-command.patch (text/plain), 1.63 KB, created by
Andreas Schneider
on 2015-04-07 14:18:13 UTC
(
hide
)
Description:
patch for master
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2015-04-07 14:18:13 UTC
Size:
1.63 KB
patch
obsolete
>From cb46627b3c0ef836561de45d168535c4bc6477aa Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Tue, 7 Apr 2015 16:12:18 +0200 >Subject: [PATCH] rpcclient: Fix the timeout command. > >https://bugzilla.samba.org/show_bug.cgi?id=11199 > >Signed-off-by: Andreas Schneider <asn@samba.org> >--- > source3/rpcclient/rpcclient.c | 20 +++++--------------- > 1 file changed, 5 insertions(+), 15 deletions(-) > >diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c >index 47789f4..bf2cbda 100644 >--- a/source3/rpcclient/rpcclient.c >+++ b/source3/rpcclient/rpcclient.c >@@ -487,8 +487,6 @@ static NTSTATUS cmd_seal(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, > static NTSTATUS cmd_timeout(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, > int argc, const char **argv) > { >- struct cmd_list *tmp; >- > if (argc > 2) { > printf("Usage: %s timeout\n", argv[0]); > return NT_STATUS_OK; >@@ -496,19 +494,6 @@ static NTSTATUS cmd_timeout(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, > > if (argc == 2) { > timeout = atoi(argv[1]); >- >- for (tmp = cmd_list; tmp; tmp = tmp->next) { >- >- struct cmd_set *tmp_set; >- >- for (tmp_set = tmp->cmd_set; tmp_set->name; tmp_set++) { >- if (tmp_set->rpc_pipe == NULL) { >- continue; >- } >- >- rpccli_set_timeout(tmp_set->rpc_pipe, timeout); >- } >- } > } > > printf("timeout is %d\n", timeout); >@@ -803,6 +788,11 @@ static NTSTATUS do_cmd(struct cli_state *cli, > } > } > >+ /* Set timeout for new connections */ >+ if (cmd_entry->rpc_pipe) { >+ rpccli_set_timeout(cmd_entry->rpc_pipe, timeout); >+ } >+ > /* Run command */ > > if ( cmd_entry->returntype == RPC_RTYPE_NTSTATUS ) { >-- >2.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11199
: 10934 |
10935
|
10942
|
10943