diff options
author | Tim Potter <tpot@samba.org> | 2003-03-18 06:30:30 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-03-18 06:30:30 +0000 |
commit | 417bf608f4253fadf4b227b5f7360f03b0193ff2 (patch) | |
tree | cc6261c79833fa7c59701105deefcf3fedd384d0 /source3/rpcclient/cmd_reg.c | |
parent | e6d438c2db8f9e5e1c2eff12fd278ddf1db353b4 (diff) | |
download | samba-417bf608f4253fadf4b227b5f7360f03b0193ff2.tar.gz samba-417bf608f4253fadf4b227b5f7360f03b0193ff2.tar.xz samba-417bf608f4253fadf4b227b5f7360f03b0193ff2.zip |
Merge of waider's rpcclient return type patch.
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
Diffstat (limited to 'source3/rpcclient/cmd_reg.c')
-rw-r--r-- | source3/rpcclient/cmd_reg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_reg.c b/source3/rpcclient/cmd_reg.c index 19c0e7f71f..bf85d21716 100644 --- a/source3/rpcclient/cmd_reg.c +++ b/source3/rpcclient/cmd_reg.c @@ -914,7 +914,7 @@ static NTSTATUS cmd_reg_shutdown(struct cli_state *cli, TALLOC_CTX *mem_ctx, switch (opt) { case 'm': - safe_strcpy(msg, optarg, sizeof(msg)-1); + fstrcpy(msg, optarg); /*fprintf (stderr, "[%s|%s]\n", optarg, msg);*/ break; @@ -970,10 +970,10 @@ struct cmd_set reg_commands[] = { { "REG" }, - { "shutdown", cmd_reg_shutdown, PI_WINREG, "Remote Shutdown", + { "shutdown", RPC_RTYPE_NTSTATUS, cmd_reg_shutdown, NULL, PI_WINREG, "Remote Shutdown", "syntax: shutdown [-m message] [-t timeout] [-r] [-h] [-f] (-r == reboot, -h == halt, -f == force)" }, - { "abortshutdown", cmd_reg_abort_shutdown, PI_WINREG, "Abort Shutdown", + { "abortshutdown", RPC_RTYPE_NTSTATUS, cmd_reg_abort_shutdown, NULL, PI_WINREG, "Abort Shutdown", "syntax: abortshutdown" }, /* { "regenum", cmd_reg_enum, "Registry Enumeration", |