diff options
author | 1997-06-20 17:45:14 +0000 | |
---|---|---|
committer | 1997-06-20 17:45:14 +0000 | |
commit | 69433b004d223f94e40ae2af8e040019ef512eea (patch) | |
tree | 047957e50352a29cecb9121e29b6f6be82c40bac | |
parent | ++minor since added a new function (diff) | |
download | wireguard-openbsd-69433b004d223f94e40ae2af8e040019ef512eea.tar.xz wireguard-openbsd-69433b004d223f94e40ae2af8e040019ef512eea.zip |
I wasted a lot of paper because of the way that printcap mx is handled.
I don't even have an mx in my printcap, the default is too small, a 45 page
PostScript file with some images should not barf because of the default mx.
I will deal with this in a better way later.
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 1b218b2dcfe..bc9d948eb19 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.12 1997/01/17 16:12:46 millert Exp $ */ +/* $OpenBSD: lpr.c,v 1.13 1997/06/20 17:45:14 kstailey Exp $ */ /* $NetBSD: lpr.c,v 1.10 1996/03/21 18:12:25 jtc Exp $ */ /* @@ -50,7 +50,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: lpr.c,v 1.12 1997/01/17 16:12:46 millert Exp $"; +static char rcsid[] = "$OpenBSD: lpr.c,v 1.13 1997/06/20 17:45:14 kstailey Exp $"; #endif #endif /* not lint */ @@ -443,7 +443,12 @@ copy(f, n) nc -= BUFSIZ; nr++; if (MX > 0 && nr > MX) { - printf("%s: %s: copy file is too large\n", name, n); + /* XXX by now you have wasted a large amount of paper by printing half + * a PostScript file you fool! Can't this be evaluated earlier? + */ + printf("%s: %s: copy file is too large\n", + name, n); + printf("%s: %s: WARNING: I stupidly sent a bunch of stuff to the printer anyway", name, n); break; } } |