diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-05 00:50:20 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-16 09:34:35 +0200 |
commit | c1a2cb729bd5bb5fdadf00cb3968bbc541f79750 (patch) | |
tree | 2ac559821173f8af5e04ab3e3be0cf80178c5c92 /bin/sqfs2tar/sqfs2tar.c | |
parent | 5f637f97c3427dc6e1a68678aefee1f62ca34d62 (diff) |
Implement output compression support for sqfs2tar
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/sqfs2tar/sqfs2tar.c')
-rw-r--r-- | bin/sqfs2tar/sqfs2tar.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/sqfs2tar/sqfs2tar.c b/bin/sqfs2tar/sqfs2tar.c index c5d1201..00d1e27 100644 --- a/bin/sqfs2tar/sqfs2tar.c +++ b/bin/sqfs2tar/sqfs2tar.c @@ -123,6 +123,12 @@ int main(int argc, char **argv) goto out_dirs; } + if (compressor > 0) { + out_file = ostream_compressor_create(out_file, compressor); + if (out_file == NULL) + goto out_dirs; + } + file = sqfs_open_file(filename, SQFS_FILE_OPEN_READ_ONLY); if (file == NULL) { perror(filename); |