]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Implement ARCHIVE_EXTRACT_SAFE_WRITES on Windows
authorMartin Matuska <martin@matuska.org>
Mon, 20 Jan 2020 10:41:18 +0000 (11:41 +0100)
committerMartin Matuska <martin@matuska.org>
Mon, 20 Jan 2020 14:31:37 +0000 (15:31 +0100)
commit467d193dd61ca7669a5ba8d38e09836babf64e58
tree86214724bfe7a312f937de9c2165efeaa9d46d90
parentb51d6b621533b6ea7a0a9c4770cc23c2d62a88cf
Implement ARCHIVE_EXTRACT_SAFE_WRITES on Windows

As Windows does not support atomic rename/_wrename
we have to unlink the file right before calling _wrename
leaving a short unsafe window where a different file with the
same name can be created and make the rename operation fail.
libarchive/archive_util.c
libarchive/archive_write_disk_windows.c