1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r16346: Allow to exit a "net rpc shell" with 'quit' or 'exit'.

Guenther
(This used to be commit 232566e1cb)
This commit is contained in:
Günther Deschner 2006-06-19 10:02:04 +00:00 committed by Gerald (Jerry) Carter
parent bf9b5b9baf
commit c53262d677

View 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) {