summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-05 10:38:13 +0100
committerGünther Deschner <gd@samba.org>2008-03-05 10:38:13 +0100
commitb0dad261add75789cbbbfed12ed1d3f25c3e2182 (patch)
tree368735e50799f48d4ec954fff4807d23243072a8
parent78b20443c587d303aa33f594c746c38e2689004d (diff)
downloadsamba-b0dad261add75789cbbbfed12ed1d3f25c3e2182.tar.gz
samba-b0dad261add75789cbbbfed12ed1d3f25c3e2182.tar.bz2
samba-b0dad261add75789cbbbfed12ed1d3f25c3e2182.zip
Use rpccli_srvsvc_NetRemoteTOD() in rpcclient.
Guenther (This used to be commit 5e9d8cdc948b678e5aa6e04ee13635376b7306f5)
-rw-r--r--source3/rpcclient/cmd_srvsvc.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 4b3601a5ff..2e84f0498f 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -402,9 +402,10 @@ static WERROR cmd_srvsvc_net_remote_tod(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
int argc, const char **argv)
{
- TIME_OF_DAY_INFO tod;
+ struct srvsvc_NetRemoteTODInfo *tod = NULL;
fstring srv_name_slash;
WERROR result;
+ NTSTATUS status;
if (argc > 1) {
printf("Usage: %s\n", argv[0]);
@@ -412,8 +413,14 @@ static WERROR cmd_srvsvc_net_remote_tod(struct rpc_pipe_client *cli,
}
fstr_sprintf(srv_name_slash, "\\\\%s", cli->cli->desthost);
- result = rpccli_srvsvc_net_remote_tod(
- cli, mem_ctx, srv_name_slash, &tod);
+ status = rpccli_srvsvc_NetRemoteTOD(cli, mem_ctx,
+ srv_name_slash,
+ &tod,
+ &result);
+ if (!NT_STATUS_IS_OK(status)) {
+ result = ntstatus_to_werror(status);
+ goto done;
+ }
if (!W_ERROR_IS_OK(result))
goto done;