summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-09-08 15:17:15 +0000
committerdes <des@FreeBSD.org>2001-09-08 15:17:15 +0000
commit80b788da323bf3caa76b050bf2801349b03942ea (patch)
treea6e3814decc00b485c147512c43aa4ec7f69a47a /sys/compat/linux/linux_file.c
parent6ac93bff0d0bb146e19307c26edffdbe235dd70f (diff)
downloadFreeBSD-src-80b788da323bf3caa76b050bf2801349b03942ea.zip
FreeBSD-src-80b788da323bf3caa76b050bf2801349b03942ea.tar.gz
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
Diffstat (limited to 'sys/compat/linux/linux_file.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud