[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Unrecognized commands in svnadmin shell

From: Pavel Roskin <proski_at_gnu.org>
Date: 2002-09-26 02:07:17 CEST

Hello!

This patch makes "svnadmin shell" complain about unrecognized commands.

----------------------------------------------------
Index: subversion/svnadmin/shell.c
===================================================================
--- subversion/svnadmin/shell.c
+++ subversion/svnadmin/shell.c Wed Sep 25 20:05:00 2002
@@ -430,9 +430,12 @@
 
   else if ((! strcmp(subcommand, "quit"))
            || (! strcmp(subcommand, "exit")))
- *finished = 1;
-
+ {
+ *finished = 1;
+ return SVN_NO_ERROR;
+ }
 
+ printf ("Unrecognized command \"%s\"\n", subcommand);
   return SVN_NO_ERROR;
 }
 
----------------------------------------------------

Example output after the patch:

<7: />$ ls
  < 1.0.d> [ 7] 0 0 rxvt/
<7: />$ rm -rf rxvt
Unrecognized command "rm"
<7: />$

-- 
Regards,
Pavel Roskin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 26 02:07:54 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.