]> git.ipfire.org Git - thirdparty/systemd.git/commit
tar-util: properly deal with sparse files
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2025 17:08:01 +0000 (19:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Nov 2025 13:12:39 +0000 (14:12 +0100)
commita54f4520f36da05dc48322989f36b1c46ee7f01b
tree96aa4db315f62fc5779765b0bd921866dfd2a20e
parent63bf3ca8b077f9aef0b4ed7addd4e5798e5dc483
tar-util: properly deal with sparse files

The extractor already deals with sparse files properly (because
archive_read_data_into_fd() does).

Let's also make sure the archiver also does this, and attaches the
necessary sparse file metadata to each file.
src/shared/libarchive-util.c
src/shared/libarchive-util.h
src/shared/tar-util.c