summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpc
diff options
context:
space:
mode:
authorgrr <grr@cvs.openbsd.org>1997-07-25 18:57:25 +0000
committergrr <grr@cvs.openbsd.org>1997-07-25 18:57:25 +0000
commit5f847c26943f34aecbbab0e20155ce54256b5ba1 (patch)
tree9830db08b5822cd57c7bb85e472c94a604124fbf /usr.sbin/lpr/lpc
parent39068477c1d791660c2e240e3f3d871b6596d07d (diff)
restore traditional "all" keyword option - see lpc(8)
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r--usr.sbin/lpr/lpc/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c
index e6489d11f59..802d2c5d503 100644
--- a/usr.sbin/lpr/lpc/cmds.c
+++ b/usr.sbin/lpr/lpc/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.8 1997/01/17 16:12:35 millert Exp $ */
+/* $OpenBSD: cmds.c,v 1.9 1997/07/25 18:57:24 grr Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.8 1997/01/17 16:12:35 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.9 1997/07/25 18:57:24 grr Exp $";
#endif
#endif /* not lint */
@@ -777,7 +777,7 @@ status(argc, argv)
register char *cp1, *cp2;
char prbuf[100];
- if (argc == 1) {
+ if (argc == 1 || argc == 2 && !strcmp(argv[1], "all")) {
printer = prbuf;
while (cgetnext(&bp, printcapdb) > 0) {
cp1 = prbuf;