[cups.bugs] [LOW] STR #3449: Missing errors

twaugh.redhat twaugh at redhat.com
Fri Dec 11 03:45:22 PST 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

In cupsPrintFiles2() there are two error conditions which do not set the
CUPS error state correctly.

Firstly, if cupsFileOpen() fails, there is no call to _cupsSetError() at
all.

Secondly, if cupsFinishDocument() fails, although the error has already
been set, the error path calls cupsCancelJob2() and this seems to clear
the error state again.

For example:

$ lp -odocument-format=foo/bar /etc/fstab
lp: successful-ok

Link: http://www.cups.org/str.php?L3449
Version: 1.4.2





More information about the cups-devel mailing list