Subject: bin/26221: missing option in the usage of lock(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/10/2004 13:04:31
>Number: 26221
>Category: bin
>Synopsis: missing option in the usage of lock(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 10 04:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #20: Fri Jul 9 01:13:02 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
-n is missing in the usage of lock(1).
>How-To-Repeat:
see usage
>Fix:
* add -n
* Usage -> usage
Index: lock/lock.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/lock/lock.c,v
retrieving revision 1.23
diff -u -r1.23 lock.c
--- lock/lock.c 17 Mar 2004 17:54:25 -0000 1.23
+++ lock/lock.c 7 Jul 2004 18:46:30 -0000
@@ -140,7 +140,7 @@
case '?':
default:
(void)fprintf(stderr,
- "Usage: %s [-p] [-t timeout]\n", getprogname());
+ "usage: %s [-np] [-t timeout]\n", getprogname());
exit(1);
}
timeout.tv_sec = (int)sectimeout * 60;
>Release-Note:
>Audit-Trail:
>Unformatted: