From 5f847c26943f34aecbbab0e20155ce54256b5ba1 Mon Sep 17 00:00:00 2001 From: grr Date: Fri, 25 Jul 1997 18:57:25 +0000 Subject: restore traditional "all" keyword option - see lpc(8) --- usr.sbin/lpr/lpc/cmds.c | 6 +++--- 1 file 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; -- cgit v1.2.3