From owner-cvs-all Sat Sep 8 8:17:21 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6211E37B408; Sat, 8 Sep 2001 08:17:15 -0700 (PDT) Received: (from des@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f88FHFL06609; Sat, 8 Sep 2001 08:17:15 -0700 (PDT) (envelope-from des) Message-Id: <200109081517.f88FHFL06609@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Sat, 8 Sep 2001 08:17:15 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/fetch fetch.c X-FreeBSD-CVS-Branch: HEAD 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 des 2001/09/08 08:17:15 PDT Modified files: usr.bin/fetch fetch.c Log: If the local file does not exist, or is a regular file, and we're not trying to resume a transfer, download the requested document into a temporary file which we later rename. This avoids leaving half-completed files around in case of a crash (it'll still leave a half-completed file, but with a hope- fully non-conflicting name), and should reduce the need for human inter- vention on ports-building machines. The temporary file name for "foo/bar" is constructed by invoking mkstemps() with the pattern "foo/.fetch.XXXXXX.bar" Requested by: obrien Revision Changes Path 1.38 +72 -28 src/usr.bin/fetch/fetch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message