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:
parent
bf9b5b9baf
commit
c53262d677
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user