]> git.ipfire.org Git - thirdparty/libarchive.git/commit
use O_TMPFILE if it works/is supported in __archive_mktemp 1422/head
authorCristian Rodríguez <crrodriguez@opensuse.org>
Mon, 27 Jul 2020 14:11:33 +0000 (10:11 -0400)
committerCristian Rodríguez <crodriguez@owncloud.com>
Mon, 27 Jul 2020 14:24:27 +0000 (10:24 -0400)
commitb6bb4e0e62facb1f787e2e269182a5ce5b5cfdf9
treef01fd90bec076edd4b2d641ee5d5d1fa74863401
parent4f8359552b3b4291d5dac7efc657bbe696a3b2f5
use O_TMPFILE if it works/is supported in __archive_mktemp

This makes the function safer on linux since the file is warrantied to never
be visible on the filesystem, cannot be linked anywhere unless O_EXCL is
not specified and it is lost forever on any kind of program termination.
libarchive/archive_util.c