apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.93k stars 464 forks source link

cupsRasterReadPixels doesn't handle EAGAIN correctly #473

Closed michaelrsweet closed 20 years ago

michaelrsweet commented 20 years ago

Version: 1.1-current CUPS.org User: jlovell

In cupsRasterReadPixels errno should not be consulted when read(2) returns 0. The attached patch fixes it.

michaelrsweet commented 20 years ago

CUPS.org User: mike

Reassigned to 1.2, and will apply.

michaelrsweet commented 20 years ago

CUPS.org User: mike

Fixed in CVS - the anonymous CVS repository will be updated at midnight EST.

michaelrsweet commented 20 years ago

"raster.c.patch":

raster.c.patchu»üêA»üêBmBIN‚ˆeIndex: raster.c

RCS file: /home/anoncvs/cups/filter/raster.c,v retrieving revision 1.5 diff -u -d -b -w -r1.5 raster.c --- raster.c 17 Dec 2002 18:59:28 -0000 1.5 +++ raster.c 10 Dec 2003 23:20:48 -0000 @@ -178,12 +178,15 @@ { bytes = read(r->fd, p, remaining);