From c53262d6772ef3f8e66f29d8c291f8dad611dc80 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 19 Jun 2006 10:02:04 +0000 Subject: r16346: Allow to exit a "net rpc shell" with 'quit' or 'exit'. Guenther (This used to be commit 232566e1cb1eaaa6ae09e9de8a8a82d91acdfda7) --- source3/utils/net_rpc_shell.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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) { -- cgit