Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2002 19:01:18 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libfetch common.c
Message-ID:  <20021029030118.GA36927@dragon.nuxi.com>
In-Reply-To: <200210271720.g9RHKnUS015686@repoman.freebsd.org>
References:  <200210271720.g9RHKnUS015686@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 27, 2002 at 09:20:49AM -0800, Dag-Erling Smorgrav wrote:
> des         2002/10/27 09:20:49 PST
> 
>   Modified files:
>     lib/libfetch         common.c 
>   Log:
>   Slight amendment to rev 1.34: instead of considering any short read an
>   error, only report an error if no data was read at all (unless len was
>   0 to start with).  Otherwise, the final read of practically any transfer
>   will end in a fatal error.
>   
>   Revision  Changes    Path
>   1.37      +8 -6      src/lib/libfetch/common.c

Please back this out, it core dumps for me:

fetch -v ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/jive.tbz
looking up proxy.mycompany.com
connecting to proxy.mycompany.com:66
requesting ftp://ftp.freebsd.org:21/pub/FreeBSD/ports/i386/packages-current/Latest/jive.tbz
fetch: jive.tbz: size of remote file is not known
Receiving jive.tbz: 0 bytesBus error (core dumped)

If I take common.c back to rev 1.36, this does not happen.
(note this is with an up to date fetch(1) and libfetch(1), an Oct-8
kernel and Oct-16 libc.so.5)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021029030118.GA36927>