On Mon, Jun 26, 2006 at 01:19:32PM +0100, Nigel Horne wrote:
> Suggested patch:

not quite ( the standard input is normally file descriptor 0 )

> 
> 
> #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


-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to