diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-29 18:13:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-10-29 18:13:52 +0000 |
commit | a2a69d46ed22682b89e591b4ff93c7e982925596 (patch) | |
tree | 60733284ad96deeb73e3f969fa1e6ef53d3705c5 /usr.sbin/lpr/lpd | |
parent | a4c91db1c3dda758375581d05d8c7cc11b1b3dab (diff) |
MacOS 10.1 lpr clients send a format character of "o" to indicate postscript; jabley@automagic.org
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index bc5d3184735..2fc24865534 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.26 2001/09/19 10:58:08 mpech Exp $ */ +/* $OpenBSD: printjob.c,v 1.27 2001/10/29 18:13:51 deraadt Exp $ */ /* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */ /* @@ -582,6 +582,14 @@ print(format, file) return(ERROR); } fi = p[0]; /* use pipe for input */ + case 'o': /* print postscript file */ + /* + * For now, treat this as a plain-text file, and assume + * the standard LPF_INPUT filter will recognize that it + * is postscript and know what to do with it. These + * 'o'-file requests could come from MacOS 10.1 systems. + */ + /* FALLTHROUGH */ case 'f': /* print plain text file */ prog = IF; av[1] = width; |