1
0
forked from rpms/rpcbind
rpcbind/rpcbind-0.2.0-usage-fix.patch
Steve Dickson 42c9f952ef - Fixed pre scriptle failure during upgrades (bz 507364)
- Corrected the usage info to match what the rpcbind man page says. (bz
    466332)
- Correct package issues (bz 503508)
2009-06-25 13:59:31 +00:00

32 lines
880 B
Diff

commit c5e04d3ef1b4d9a24741dc865aaa55b07fe3c89f
Author: Steve Dickson <steved@redhat.com>
Date: Thu Jun 25 08:41:29 2009 -0400
Corrected the usage info to match what the rpcbind man
page says.
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/src/rpcbind.c b/src/rpcbind.c
index 525ffba..ddf2cfc 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -731,7 +731,7 @@ parseargs(int argc, char *argv[])
{
int c;
oldstyle_local = 1;
- while ((c = getopt(argc, argv, "dwah:ils")) != -1) {
+ while ((c = getopt(argc, argv, "adh:ilsw")) != -1) {
switch (c) {
case 'a':
doabort = 1; /* when debugging, do an abort on */
@@ -764,7 +764,7 @@ parseargs(int argc, char *argv[])
break;
#endif
default: /* error */
- fprintf(stderr, "usage: rpcbind [-Idwils]\n");
+ fprintf(stderr, "usage: rpcbind [-adhilsw]\n");
exit (1);
}
}