]> git.ipfire.org Git - thirdparty/libarchive.git/commit
posix: Move static var into archive_write_disk 3107/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 18:28:53 +0000 (20:28 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 18:50:12 +0000 (20:50 +0200)
commit5b997acdf478ff3e9781a9054d26b17cb3e80ee4
tree582adcf52764c6c91d11d6acd280d989ee7233aa
parentf78894b87ea14c418f28fdbe14035993325c3199
posix: Move static var into archive_write_disk

Move a static variable into struct archive_write_disk, which is a safe
location from a thread perspective.

Only create and use it if it's really needed, i.e. for systems which
lack support for extended attributes.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_write_disk_posix.c