On Tue, 2004-06-08 at 11:32, Alexander Valyalkin wrote:
> + /* get the length of local file connected to descriptor fd */
> fstat(fd, &sbuf);
[snip]
> + if (errno) {Oh-oh! You need to check the return value of fstat(). Errno is only set if fstat() fails (returns -1), otherwise errno keeps its old (junk) value. Best regards, Morten -- Morten K. Poulsen <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
