export-tar: port to common libarchive tar generation code

This commit is contained in:
Lennart Poettering
2025-10-29 10:09:44 +01:00
parent faaed501e0
commit 3780a0b446
6 changed files with 90 additions and 42 deletions
-1
View File
@@ -823,7 +823,6 @@ int tar_x(int input_fd, int tree_fd, TarFlags flags) {
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "libarchive support not available.");
}
int tar_c(int tree_fd, int output_fd, const char *filename, TarFlags flags) {
assert(tree_fd >= 0);
assert(output_fd >= 0);