You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Kobayashi Noritada <no...@dolphin.c.u-tokyo.ac.jp> on 2005/02/23 17:27:51 UTC

[PATCH] 'svnserve --help' should exit with the status code '0'

Hi,

This is a patch for 'svnserve --help' to exit with the status code '0'.

Regards,

- nori

Log:
Make 'svnserve --help' exit with the status code '0', not '1', because
it outputs the help message as expected.

* subversion/svnserve/main.c
  (help): Replace 'exit(1)' with 'exit(0)'.


Index: subversion/svnserve/main.c
===================================================================
--- subversion/svnserve/main.c	(revision 13128)
+++ subversion/svnserve/main.c	(working copy)
@@ -149,7 +149,7 @@
       svn_error_clear (svn_cmdline_fprintf(stdout, pool, "  %s\n", optstr));
     }
   svn_error_clear (svn_cmdline_fprintf(stdout, pool, "\n"));
-  exit(1);
+  exit(0);
 }
 
 static svn_error_t * version(apr_getopt_t *os, apr_pool_t *pool)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] 'svnserve --help' should exit with the status code '0'

Posted by Julian Foad <ju...@btopenworld.com>.
Kobayashi Noritada wrote:
> This is a patch for 'svnserve --help' to exit with the status code '0'.

+1 to commit it.  That's a good log message, stating the reason for the change.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org