mirror of
https://github.com/samba-team/samba.git
synced 2025-02-11 17:58:16 +03:00
Use rpccli_srvsvc_NetRemoteTOD() in rpcclient.
Guenther
This commit is contained in:
parent
2b4e0f0593
commit
5e9d8cdc94
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user