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

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

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2005-02-23 18:27:51 CET

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
Received on Wed Feb 23 18:33:12 2005

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.