bin/104731: [patch] missing newline in lpq output

Garance A Drosehn gad at FreeBSD.org
Tue Oct 31 03:30:13 UTC 2006


Synopsis: [patch] missing newline in lpq output

Responsible-Changed-From-To: freebsd-bugs->gad
Responsible-Changed-By: gad
Responsible-Changed-When: Tue Oct 31 03:26:13 UTC 2006
Responsible-Changed-Why: 
I'll look into this, and do something similar to your lpq-patch2.txt,
although it won't be quite the same.  Note that if the while(i=read())
loop is executed more than once, then your lastChar check may write
out an extra '\n' line.  Also, when I've seen this problem, I've also
seen that the remote-host is in fact sending back '\r' characters,
and I'd want to do something a bit more intelligent in that case.

http://www.freebsd.org/cgi/query-pr.cgi?pr=104731


More information about the freebsd-bugs mailing list