=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/cvsd.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/cvs/Attic/cvsd.c 2004/08/06 20:09:22 1.5 --- src/usr.bin/cvs/Attic/cvsd.c 2004/09/24 12:19:21 1.6 *************** *** 1,4 **** ! /* $OpenBSD: cvsd.c,v 1.5 2004/08/06 20:09:22 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: cvsd.c,v 1.6 2004/09/24 12:19:21 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 140,151 **** usage(void) { fprintf(stderr, ! "Usage: %s [-dfpv] [-c config] [-r root] [-s path]\n" "\t-d\t\tStart the server in debugging mode (very verbose)\n" "\t-f\t\tStay in foreground instead of becoming a daemon\n" ! "\t-p\t\tPerform permission and ownership check on the repository\n" ! "\t-r root\tUse as the root directory of the repository\n" ! "\t-s path\tUse as the path for the CVS server socket\n" "\t-v\t\tBe verbose\n", __progname); } --- 140,152 ---- usage(void) { fprintf(stderr, ! "Usage: %s [-dfhpv] [-c config] [-r root] [-s path]\n" "\t-d\t\tStart the server in debugging mode (very verbose)\n" "\t-f\t\tStay in foreground instead of becoming a daemon\n" ! "\t-h\t\tPrint the usage and exit\n" ! "\t-p\t\tPerform repository sanity check on startup\n" ! "\t-r root\t\tUse as the root directory of the repository\n" ! "\t-s path\t\tUse as the path for the CVS server socket\n" "\t-v\t\tBe verbose\n", __progname); } *************** *** 164,170 **** if (cvs_log_init(LD_STD|LD_SYSLOG, LF_PID) < 0) err(1, "failed to initialize logging mechanism"); ! while ((ret = getopt(argc, argv, "a:c:dfpr:s:v")) != -1) { switch (ret) { case 'c': cvsd_conffile = optarg; --- 165,171 ---- if (cvs_log_init(LD_STD|LD_SYSLOG, LF_PID) < 0) err(1, "failed to initialize logging mechanism"); ! while ((ret = getopt(argc, argv, "a:c:dfhpr:s:v")) != -1) { switch (ret) { case 'c': cvsd_conffile = optarg; *************** *** 175,180 **** --- 176,186 ---- break; case 'f': foreground = 1; + break; + case 'h': + usage(); + exit(0); + /* NOTREACHED */ break; case 'p': checkrepo = 1;