1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.bin/fetch
Dag-Erling Smørgrav e9dc4f3b74 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
2001-09-08 15:17:15 +00:00
..
fetch.1 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
fetch.c If the local file does not exist, or is a regular file, and we're not trying 2001-09-08 15:17:15 +00:00
Makefile WARNS cleanup + remove an unused macro and an unused function argument. 2001-07-17 21:22:32 +00:00