summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2005-09-15 20:39:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:39 -0500
commit3c3fd2fab37f0d343a16d1b240443570439ce09a (patch)
tree1abb5afa3f72c2daac27bd3ff08b1c4433eecc9a /source3
parent9d7a70f3a4fc1ab51eabb7bdc8f7b89a2f67ddbb (diff)
downloadsamba-3c3fd2fab37f0d343a16d1b240443570439ce09a.tar.gz
samba-3c3fd2fab37f0d343a16d1b240443570439ce09a.tar.bz2
samba-3c3fd2fab37f0d343a16d1b240443570439ce09a.zip
r10247: Fix help text for net rpc shutdown.
(This used to be commit 7af7343d9c7047998e4d54e07730ae1d87de3942)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 50114d5fac..ac7e566344 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -4469,7 +4469,10 @@ static NTSTATUS rpc_init_shutdown_internals(const DOM_SID *domain_sid,
if (opt_comment) {
msg = opt_comment;
+ } else {
+ msg = "";
}
+
if (opt_timeout) {
timeout = opt_timeout;
}
@@ -5965,7 +5968,7 @@ int net_rpc_usage(int argc, const char **argv)
d_printf("\t-r or --reboot\trequest remote server reboot on shutdown\n");
d_printf("\t-f or --force\trequest the remote server force its shutdown\n");
d_printf("\t-t or --timeout=<timeout>\tnumber of seconds before shutdown\n");
- d_printf("\t-c or --comment=<message>\ttext message to display on impending shutdown\n");
+ d_printf("\t-C or --comment=<message>\ttext message to display on impending shutdown\n");
return -1;
}