r10247: Fix help text for net rpc shutdown.
authorJim McDonough <jmcd@samba.org>
Thu, 15 Sep 2005 20:39:57 +0000 (20:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:39 +0000 (11:03 -0500)
(This used to be commit 7af7343d9c7047998e4d54e07730ae1d87de3942)

source3/utils/net_rpc.c

index 50114d5fac6f9361b68e92984b464b40d9b493d5..ac7e5663441e87b1514d3bfd157affba927581d6 100644 (file)
@@ -4469,7 +4469,10 @@ static NTSTATUS rpc_init_shutdown_internals(const DOM_SID *domain_sid,
 
        if (opt_comment) {
                msg = opt_comment;
 
        if (opt_comment) {
                msg = opt_comment;
+       } else {
+               msg = "";
        }
        }
+
        if (opt_timeout) {
                timeout = opt_timeout;
        }
        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-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;
 }
 
        return -1;
 }