diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_shell.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c index 4a4eadeef2..63f514a79d 100644 --- a/source3/utils/net_rpc_shell.c +++ b/source3/utils/net_rpc_shell.c @@ -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) { |