NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/40063: `usage'-line of uuencode(1) and the `SYNOPSIS' line of its manpage differ



>Number:         40063
>Category:       misc
>Synopsis:       `usage'-line of uuencode(1) and the `SYNOPSIS' line of its 
>manpage differ
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 29 02:20:00 +0000 2008
>Originator:     Bug Hunting
>Release:        5.99.3
>Organization:
>Environment:
>Description:
The `usage'-line of uuencode(1) does not match the `SYNOPSIS'
line of its manpage.

The naming of the manpage should probably be kept, since there
isn't really a `remotefile', as the `usage'-line calls it.
>How-To-Repeat:
$ uuencode    
usage: uuencode [-m] [infile] remotefile
$ man -h 1 uuencode|head -n1
uuencode [-m] [file] name
>Fix:
Apply the following (proposed) patch:

$ diff -u /usr/src/usr.bin/uuencode/uuencode.c uuencode.c.new
--- /usr/src/usr.bin/uuencode/uuencode.c        2008-07-21 16:19:27.000000000 
+0200
+++ uuencode.c.new      2008-11-29 02:54:04.000000000 +0100
@@ -196,7 +196,7 @@
 static void
 usage(void)
 {
-       (void)fprintf(stderr, "usage: %s [-m] [infile] remotefile\n",
+       (void)fprintf(stderr, "usage: %s [-m] [file] name\n",
                      getprogname());
        exit(1);
 }



Home | Main Index | Thread Index | Old Index