summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-12 16:35:41 +0100
committerGünther Deschner <gd@samba.org>2008-03-12 16:35:41 +0100
commitfd62e5688b4ced6568da1111f5a97bff0a54932e (patch)
tree31030999f23a8fae25e9846e5d9c44f6aa8fcb3f /source3/rpcclient
parent5e86a172a567ca9a60d74d1076430fb5e70b27a6 (diff)
downloadsamba-fd62e5688b4ced6568da1111f5a97bff0a54932e.tar.gz
samba-fd62e5688b4ced6568da1111f5a97bff0a54932e.tar.bz2
samba-fd62e5688b4ced6568da1111f5a97bff0a54932e.zip
Use existing srv_name_slash.
Guenther (This used to be commit 5f2b3145fcaeee58f285b6527e9fac09c5337e8a)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 0c447e0306..fc00f8a178 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -516,7 +516,6 @@ static WERROR cmd_srvsvc_net_remote_tod(struct rpc_pipe_client *cli,
int argc, const char **argv)
{
struct srvsvc_NetRemoteTODInfo *tod = NULL;
- fstring srv_name_slash;
WERROR result;
NTSTATUS status;
@@ -525,9 +524,8 @@ static WERROR cmd_srvsvc_net_remote_tod(struct rpc_pipe_client *cli,
return WERR_OK;
}
- fstr_sprintf(srv_name_slash, "\\\\%s", cli->cli->desthost);
status = rpccli_srvsvc_NetRemoteTOD(cli, mem_ctx,
- srv_name_slash,
+ cli->cli->srv_name_slash,
&tod,
&result);
if (!NT_STATUS_IS_OK(status)) {