diff options
author | Günther Deschner <gd@samba.org> | 2006-06-19 10:02:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:37 -0500 |
commit | c53262d6772ef3f8e66f29d8c291f8dad611dc80 (patch) | |
tree | bd929a740068013101c3350f7014e3029810e398 | |
parent | bf9b5b9baf1faa2eb8a150623a97d26a4ef76922 (diff) | |
download | samba-c53262d6772ef3f8e66f29d8c291f8dad611dc80.tar.gz samba-c53262d6772ef3f8e66f29d8c291f8dad611dc80.tar.bz2 samba-c53262d6772ef3f8e66f29d8c291f8dad611dc80.zip |
r16346: Allow to exit a "net rpc shell" with 'quit' or 'exit'.
Guenther
(This used to be commit 232566e1cb1eaaa6ae09e9de8a8a82d91acdfda7)
-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) { |