Author: gd
Date: 2006-06-19 10:02:04 +0000 (Mon, 19 Jun 2006)
New Revision: 16346

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16346

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

Guenther

Modified:
   branches/SAMBA_3_0/source/utils/net_rpc_shell.c
   trunk/source/utils/net_rpc_shell.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_shell.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_shell.c     2006-06-19 10:01:02 UTC 
(rev 16345)
+++ branches/SAMBA_3_0/source/utils/net_rpc_shell.c     2006-06-19 10:02:04 UTC 
(rev 16346)
@@ -116,6 +116,10 @@
                }
        }
 
+       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) {

Modified: trunk/source/utils/net_rpc_shell.c
===================================================================
--- trunk/source/utils/net_rpc_shell.c  2006-06-19 10:01:02 UTC (rev 16345)
+++ trunk/source/utils/net_rpc_shell.c  2006-06-19 10:02:04 UTC (rev 16346)
@@ -116,6 +116,10 @@
                }
        }
 
+       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) {

Reply via email to