r16346: Allow to exit a "net rpc shell" with 'quit' or 'exit'.
authorGünther Deschner <gd@samba.org>
Mon, 19 Jun 2006 10:02:04 +0000 (10:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:37 +0000 (11:17 -0500)
Guenther
(This used to be commit 232566e1cb1eaaa6ae09e9de8a8a82d91acdfda7)

source3/utils/net_rpc_shell.c

index 4a4eadeef2b0045f334f2076551c7d237d23a14d..63f514a79da97d731d2d8f3e749f9c0a11141268 100644 (file)
@@ -116,6 +116,10 @@ static BOOL net_sh_process(struct rpc_sh_ctx *ctx,
                }
        }
 
+       if (strequal(argv[0], "exit") || strequal(argv[0], "quit")) {
+               return False;
+       }
+
        if (strequal(argv[0], "help") || strequal(argv[0], "?")) {
                for (c = ctx->cmds; c->name != NULL; c++) {
                        if (ctx != this_ctx) {