summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind/rpcbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpcbind/rpcbind.c')
-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