summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-27 16:36:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-27 16:36:03 +0000
commitc95595a2407d3cf72cf86c7d20684e478d4c9f36 (patch)
treed1ff70a08ffddfd40006963bcf1e5d2febeb82c7 /usr.sbin
parent1a15abf29bc768e0eab51fb0b6d192b4db30b635 (diff)
Fix a bug introduced when getopt() support was added; -h takes an
argument but -r does not. These were reversed in the getopt() string. Fix from Carson Harding
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/filters/lpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/filters/lpf.c b/usr.sbin/lpr/filters/lpf.c
index 720fe295c73..8053cef73d5 100644
--- a/usr.sbin/lpr/filters/lpf.c
+++ b/usr.sbin/lpr/filters/lpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpf.c,v 1.8 2002/06/09 03:56:29 millert Exp $ */
+/* $OpenBSD: lpf.c,v 1.9 2003/03/27 16:36:02 millert Exp $ */
/* $NetBSD: lpf.c,v 1.8 2000/04/29 00:12:32 abs Exp $ */
/*
@@ -44,7 +44,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpf.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: lpf.c,v 1.8 2002/06/09 03:56:29 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpf.c,v 1.9 2003/03/27 16:36:02 millert Exp $";
#endif
#endif /* not lint */
@@ -88,7 +88,7 @@ main(int argc, char **argv)
int done, linedone, maxrep, ch;
char *limit;
- while ((ch = getopt(argc, argv, "chr:i:l:n:w:")) != -1) {
+ while ((ch = getopt(argc, argv, "crh:i:l:n:w:")) != -1) {
switch (ch) {
case 'n':
name = optarg;