From owner-cvs-all Sat Oct 19 5:50:46 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D66437B401; Sat, 19 Oct 2002 05:50:45 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C38B043E6E; Sat, 19 Oct 2002 05:50:44 -0700 (PDT) (envelope-from roam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9JCoQmV045724; Sat, 19 Oct 2002 05:50:26 -0700 (PDT) (envelope-from roam@repoman.freebsd.org) Received: (from roam@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9JCoQwA045723; Sat, 19 Oct 2002 05:50:26 -0700 (PDT) Message-Id: <200210191250.g9JCoQwA045723@repoman.freebsd.org> From: Peter Pentchev Date: Sat, 19 Oct 2002 05:50:26 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/ftp fetch.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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