summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2004-11-07 04:32:51 +0000
committerdd <dd@FreeBSD.org>2004-11-07 04:32:51 +0000
commit52c96fe09a4b4d5401753c1c1854042bd159b58e (patch)
tree6ec4305593806adf9a6d2f2671875fe430df420a /usr.sbin/rpcbind
parenta370ddf254e800227cd55abd42011735bc7c3b6c (diff)
downloadFreeBSD-src-52c96fe09a4b4d5401753c1c1854042bd159b58e.zip
FreeBSD-src-52c96fe09a4b4d5401753c1c1854042bd159b58e.tar.gz
Make the usage message match reality about -h and -w.
Diffstat (limited to 'usr.sbin/rpcbind')
-rw-r--r--usr.sbin/rpcbind/rpcbind.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c
index ec8daca..46370ec 100644
--- a/usr.sbin/rpcbind/rpcbind.c
+++ b/usr.sbin/rpcbind/rpcbind.c
@@ -699,7 +699,12 @@ parseargs(int argc, char *argv[])
{
int c;
- while ((c = getopt(argc, argv, "dwah:ilLs")) != -1) {
+#ifdef WARMSTART
+#define WSOP "w"
+#else
+#define WSOP ""
+#endif
+ while ((c = getopt(argc, argv, "adh:iLls" WSOP)) != -1) {
switch (c) {
case 'a':
doabort = 1; /* when debugging, do an abort on */
@@ -735,7 +740,9 @@ parseargs(int argc, char *argv[])
break;
#endif
default: /* error */
- fprintf(stderr, "usage: rpcbind [-Idwils]\n");
+ fprintf(stderr,
+ "usage: rpcbind [-adiLls%s] [-h bindip]\n",
+ WSOP);
exit (1);
}
}
@@ -744,6 +751,7 @@ parseargs(int argc, char *argv[])
"-a (abort) specified without -d (debugging) -- ignored.\n");
doabort = 0;
}
+#undef WSOP
}
void
OpenPOWER on IntegriCloud