git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6f33e
)
rpcclient: fix another srv_name_slash.
author
Günther Deschner
<gd@samba.org>
Tue, 29 Apr 2008 18:14:17 +0000
(20:14 +0200)
committer
Günther Deschner
<gd@samba.org>
Tue, 29 Apr 2008 18:22:02 +0000
(20:22 +0200)
Guenther
(This used to be commit
de946e6158526ec109b0c3381bab6e6d8e9cc1b2
)
source3/rpcclient/cmd_srvsvc.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_srvsvc.c
b/source3/rpcclient/cmd_srvsvc.c
index 9efd4c979291807d9e3a50af5670b3d032987963..b84622f438ebe21f038abc170ca69353de6aa55f 100644
(file)
--- a/
source3/rpcclient/cmd_srvsvc.c
+++ b/
source3/rpcclient/cmd_srvsvc.c
@@
-172,7
+172,6
@@
static WERROR cmd_srvsvc_srv_query_info(struct rpc_pipe_client *cli,
union srvsvc_NetSrvInfo info;
WERROR result;
NTSTATUS status;
- const char *server_name;
if (argc > 2) {
printf("Usage: %s [infolevel]\n", argv[0]);
@@
-182,12
+181,8
@@
static WERROR cmd_srvsvc_srv_query_info(struct rpc_pipe_client *cli,
if (argc == 2)
info_level = atoi(argv[1]);
- server_name = talloc_asprintf_strupper_m(mem_ctx, "\\\\%s",
- cli->desthost);
- W_ERROR_HAVE_NO_MEMORY(server_name);
-
status = rpccli_srvsvc_NetSrvGetInfo(cli, mem_ctx,
-
server_name
,
+
cli->srv_name_slash
,
info_level,
&info,
&result);