Date: Sat, 19 Oct 2002 05:50:26 -0700 (PDT) From: Peter Pentchev <roam@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/ftp fetch.c Message-ID: <200210191250.g9JCoQwA045723@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
roam 2002/10/19 05:50:26 PDT
Modified files: (Branch: RELENG_4)
usr.bin/ftp fetch.c
Log:
Store the return value of read(2) into a signed variable, so error
indications are processed properly instead of forwarded to write(2)
as a bogus very, very big write. This should fix 'Invalid argument'
errors when the HTTP connection is aborted by the remote server.
Reported by: Nikolay Petrov <nik@hq.panda.bg>
Reviewed by: silence on -audit
Approved by: silence on -audit
Revision Changes Path
1.12.2.6 +1 -1 src/usr.bin/ftp/fetch.c
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?200210191250.g9JCoQwA045723>
