Even for gzip, this seems to confuse some implementations.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return -ENOTSUP;
}
- // Do not pad the last block
- archive_write_set_bytes_in_last_block(self->archive, 1);
-
#if ARCHIVE_VERSION_NUMBER >= 3007002
// Enable long mode (supported from libarchive >= 3.7.2)
r = archive_write_set_filter_option(self->archive, NULL, "long", "31");
}
}
+ // Do not pad the last block
+ archive_write_set_bytes_in_last_block(self->archive, 1);
+
// Write archive to f
r = archive_write_open_FILE(self->archive, self->f);
if (r) {