Subject: bin/24971: apm manpage and getopt() correction
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 03/30/2004 12:51:34
>Number:         24971
>Category:       bin
>Synopsis:       apm manpage and getopt() correction
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 30 12:52:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Ito
>Release:        1.6ZL
>Organization:
>Environment:
NetBSD netbsd 1.6ZL NetBSD 1.6ZL (LAB) #0: Mon Mar 29 11:05:38 EST 2004
>Description:
Add missing -m option in SYNOPSIS.
Remove superfluous "d" in getopt() call.


>How-To-Repeat:
n/a
>Fix:
Index: apm.8
===================================================================
RCS file: /cvs/nbsd/src/usr.sbin/apm/apm.8,v
retrieving revision 1.16
diff -u -r1.16 apm.8
--- apm.8       27 Jun 2003 22:58:30 -0000      1.16
+++ apm.8       30 Mar 2004 12:37:59 -0000
@@ -43,7 +43,7 @@
 .Nd Advanced Power Management control program
 .Sh SYNOPSIS
 .Nm
-.Op Fl abdlsSvz
+.Op Fl abdlmsSvz
 .Bk -words
 .Op Fl f Ar sockname
 .Ek
Index: apm.c
===================================================================
RCS file: /cvs/nbsd/src/usr.sbin/apm/apm.c,v
retrieving revision 1.14
diff -u -r1.14 apm.c
--- apm.c       8 Aug 2002 13:24:14 -0000       1.14
+++ apm.c       30 Mar 2004 12:37:59 -0000
@@ -164,7 +164,7 @@

        doac = dobstate = domin = dopct = dostatus = nodaemon =
            verbose = FALSE;
-       while ((ch = getopt(argc, argv, "lmbvadsSzf:d")) != -1)
+       while ((ch = getopt(argc, argv, "lmbvadsSzf:")) != -1)
                switch (ch) {
                case 'v':
                        verbose = TRUE;

>Release-Note:
>Audit-Trail:
>Unformatted: