Subject: bin/17518: lpq usage and man page missing -w option
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ginsbach@cray.com>
List: netbsd-bugs
Date: 07/08/2002 08:59:18
>Number:         17518
>Category:       bin
>Synopsis:       lpq usage and man page missing -w option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 08 07:00:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brian Ginsbach
>Release:        NetBSD 1.5.2, current
>Organization:
Cray Inc.
>Environment:
System: NetBSD nbtest.cray.com 1.5.2 NetBSD 1.5.2 (NBTEST) #1: Wed Feb 20 03:38:32 CST 2002 ginsbach@nbtest.cray.com:/usr/src/sys/arch/i386/compile/NBTEST i386


>Description:
	The usage message in lpq.c and the lpq(1) man page are missing
	the -w option.

>How-To-Repeat:
	By inspection.

>Fix:
Index: lpq.1
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/lpr/lpq/lpq.1,v
retrieving revision 1.11
diff -u -r1.11 lpq.1
--- lpq.1	2002/01/19 03:23:11	1.11
+++ lpq.1	2002/07/08 13:56:24
@@ -43,6 +43,7 @@
 .Nm
 .Op Fl al
 .Op Fl P Ar printer
+.Op Fl w Ar maxwait
 .Op Ar job# ...
 .Op Ar user ...
 .Sh DESCRIPTION
@@ -72,6 +73,9 @@
 .It Fl a
 Report on the local queues for all printers,
 rather than just the specified printer.
+.It Fl w Ar maxwait
+Specify the maximum time to wait in seconds for remote responses.
+The default is 300 seconds or 5 minutes.
 .El
 .Pp
 For each job submitted (i.e. invocation of
Index: lpq.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/lpr/lpq/lpq.c,v
retrieving revision 1.10
diff -u -r1.10 lpq.c
--- lpq.c	2000/04/14 06:26:53	1.10
+++ lpq.c	2002/07/08 13:56:25
@@ -183,6 +183,6 @@
 static void
 usage()
 {
-	puts("usage: lpq [-a] [-l] [-Pprinter] [user ...] [job ...]");
+	puts("usage: lpq [-a] [-l] [-Pprinter] [-w maxwait] [user ...] [job ...]");
 	exit(1);
 }
>Release-Note:
>Audit-Trail:
>Unformatted: