[cups.bugs] [LOW] STR #4013: CUPS backend lpd: wrong value "300 seconds" in error message
jsmeix.suse
jsmeix at suse.de
Wed Feb 1 04:47:10 PST 2012
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
In the CUPS sources backend/lpd.c there is:
---------------------------------------------------------
/*
* Read back the status from the command and return it...
*/
fputs("DEBUG: Reading command status...\n", stderr);
alarm(timeout);
if (recv(fd, &status, 1, 0) < 1)
{
_cupsLangPrintFilter(stderr, "WARNING",
_("Printer did not respond after %d seconds."),
timeout);
status = errno;
}
---------------------------------------------------------
This results a wrong value "300 seconds" in the message.
It think that usually if (recv(fd, &status, 1, 0) < 1)
becomes true, the whole message is wrong because
usually no SIGALRM signal was delivered.
Link: http://www.cups.org/str.php?L4013
Version: 1.5.0
More information about the cups-devel
mailing list