[cups.bugs] [MOD] STR #2945: CUPS-Get-Printers wrongly handles "printer-location"

Opher Shachar ophers at ladpc.co.il
Sat Sep 13 15:47:29 PDT 2008


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

[STR New]

When the client submits the optional "printer-location" Operation Attribute
with the CUPS-Get-Printers (1.2.4 and up)

   
http://svn.easysw.com/public/cups/trunk/doc/help/spec-ipp.html#CUPS_GET_PRINTERS

the server also adds *all* printers with no "printer-location" attribute
to its response.

To fix change (on line 7479 in trunk):

	(!location || !printer->location ||
	 !strcasecmp(printer->location, location)))

to:

	(!location || printer->location &&
	 !strcasecmp(printer->location, location)))

Cheers,
Opher Shachar.

Link: http://www.cups.org/str.php?L2945
Version: 1.3-current





More information about the cups mailing list