[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: The son of "lpr-patch reloaded"
On Thu, Jan 31, 2008 at 09:54:39PM +0000, Dennis den Brok wrote:
> Christos Zoulas <christos%astron.com@localhost> schrieb:
> > Why strcmp(foo, " ")?
> Pooh, that's from OpenBSD. Can this case actually occur anyway? I
> didn't really think about it as it seems at most superfluous. OTOH,
> if jobname == " " actually occurs, foomatic-rip might interpret the
> first word from stdin as job title or option string and thus barf
> on the postscript data which follows?
It doesn't look like it can happen via our lpr but I'm not sure
about remote printing. It looks like a J card w/o a jobname causes
lpd to internallly set the jobname to " ". This is probably why
the check is in there. (See line 420-427 lpd/printjob.c in current.)
Main Index |
Thread Index |