svn commit: samba r16346 - branches/SAMBA_3_0/source/utils
trunk/source/utils
gd at samba.org
gd at samba.org
Mon Jun 19 10:02:05 GMT 2006
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) {
More information about the samba-cvs
mailing list