Suggested patch:
#ifdef UNIX
if (fildes == 0) {
/*
* 0 can be a valid socket fd, but if it's a tty something must
* have gone wrong. - kw
*/
if (isatty(fildes)) {
CTRACE((tfp, "HTDoRead - refusing to read fd 0 which is a
tty!\n"));
+ SOCKET_ERRNO = EINVAL;
return -1;
}
} else
-Nigel
begin:vcard
fn:Nigel Horne
n:Horne;Nigel
org:NJH Music
email;internet:[EMAIL PROTECTED]
tel;fax:+44 870 705 9334
note:Skype: nigelhorne
x-mozilla-html:FALSE
version:2.1
end:vcard
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev