~ubuntu-branches/ubuntu/precise/rpcbind/precise

« back to all changes in this revision

Viewing changes to debian/patches/01-usage-fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-01-06 15:37:32 UTC
  • Revision ID: james.westby@ubuntu.com-20100106153732-e9f0kaom1llrdevx
Tags: 0.2.0-3
* Add 01-usage-fix.patch from redhat
* Add init script
  It conflicts with portmap
  It depends on lsb-base (>= 3.2-14)
  Closes: 563053
* Don't rename rpcinfo
* Put rpcbind in /sbin and rpcinfo in /usr/sbin
* Rename rpcinfo.8 as rpcinfo.7
* Add 02-manpages.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit c5e04d3ef1b4d9a24741dc865aaa55b07fe3c89f
 
2
Author: Steve Dickson <steved@redhat.com>
 
3
Date:   Thu Jun 25 08:41:29 2009 -0400
 
4
 
 
5
    Corrected the usage info to match what the rpcbind man
 
6
    page says.
 
7
    
 
8
    Signed-off-by: Steve Dickson <steved@redhat.com>
 
9
 
 
10
diff --git a/src/rpcbind.c b/src/rpcbind.c
 
11
index 525ffba..ddf2cfc 100644
 
12
--- a/src/rpcbind.c
 
13
+++ b/src/rpcbind.c
 
14
@@ -731,7 +731,7 @@ parseargs(int argc, char *argv[])
 
15
 {
 
16
        int c;
 
17
        oldstyle_local = 1;
 
18
-       while ((c = getopt(argc, argv, "dwah:ils")) != -1) {
 
19
+       while ((c = getopt(argc, argv, "adh:ilsw")) != -1) {
 
20
                switch (c) {
 
21
                case 'a':
 
22
                        doabort = 1;    /* when debugging, do an abort on */
 
23
@@ -764,7 +764,7 @@ parseargs(int argc, char *argv[])
 
24
                        break;
 
25
 #endif
 
26
                default:        /* error */
 
27
-                       fprintf(stderr, "usage: rpcbind [-Idwils]\n");
 
28
+                       fprintf(stderr, "usage: rpcbind [-adhilsw]\n");
 
29
                        exit (1);
 
30
                }
 
31
        }