[cups.bugs] [HIGH] STR #3046: cups-driverd strips everything after the first right parenthesis from the *Product

Dmitry Sharov dsharov at mackiev.com
Thu Dec 25 05:57:40 PST 2008


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

[STR New]

While enumerating PPD files cups-driverd extracts *Product values in a way
which corrupts some of them.
cups-driverd considers *Product value to be everything between the first
left parenthesis and the first right parenthesis encountered. This is not
correct in case when product string has parentheses inside it, for ex.:
*Product: "(hp designjet 100plus (C7796C))" will be extracted as 'hp
designjet 100plus (C7796C', which is incorrect and may prevent device from
being matched.

According to PPD spec it is not forbidden to use parentheses in the
*Product value, so I consider this as a defect.

Please find attached patch which resolves this issue.

Link: http://www.cups.org/str.php?L3046
Version: 1.4-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: product.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20081225/cffe02fa/attachment.ksh>


More information about the cups-devel mailing list