aboutsummaryrefslogtreecommitdiff
path: root/bin/tar2sqfs/src/tar2sqfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tar2sqfs/src/tar2sqfs.c')
-rw-r--r--bin/tar2sqfs/src/tar2sqfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/tar2sqfs/src/tar2sqfs.c b/bin/tar2sqfs/src/tar2sqfs.c
index ed671f5..ae8b548 100644
--- a/bin/tar2sqfs/src/tar2sqfs.c
+++ b/bin/tar2sqfs/src/tar2sqfs.c
@@ -8,9 +8,10 @@
int main(int argc, char **argv)
{
- int status = EXIT_FAILURE;
sqfs_istream_t *input_file = NULL;
+ tar_iterator_opts topts = { 0 };
dir_iterator_t *tar = NULL;
+ int status = EXIT_FAILURE;
sqfs_writer_t sqfs;
int ret;
@@ -22,7 +23,10 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- tar = tar_open_stream(input_file);
+ topts.excludedirs = excludedirs;
+ topts.num_excludedirs = num_excludedirs;
+
+ tar = tar_open_stream(input_file, &topts);
sqfs_drop(input_file);
if (tar == NULL) {
fputs("Creating tar stream: out-of-memory\n", stderr);