summaryrefslogtreecommitdiff
path: root/bin/sqfs2tar/sqfs2tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sqfs2tar/sqfs2tar.c')
-rw-r--r--bin/sqfs2tar/sqfs2tar.c6
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);