From b637566020abe184cdda199d640c636a7565a05c Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Sun, 6 Aug 2023 21:35:58 +0200 Subject: tar2sqfs: Add option to exclude files Using --exclude or -E it is now possible to exclude files from the input tar stream. The options can be used multiple times. Signed-off-by: Richard Weinberger --- lib/tar/test/tar_iterator.c | 4 ++-- lib/tar/test/tar_iterator2.c | 2 +- lib/tar/test/tar_iterator3.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/tar/test') diff --git a/lib/tar/test/tar_iterator.c b/lib/tar/test/tar_iterator.c index 6931a7c..cd24c94 100644 --- a/lib/tar/test/tar_iterator.c +++ b/lib/tar/test/tar_iterator.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) TEST_EQUAL_I(iret, 0); TEST_NOT_NULL(fp); TEST_EQUAL_UI(((sqfs_object_t *)fp)->refcount, 1); - it = tar_open_stream(fp); + it = tar_open_stream(fp, NULL); TEST_NOT_NULL(it); TEST_EQUAL_UI(((sqfs_object_t *)fp)->refcount, 2); TEST_EQUAL_UI(((sqfs_object_t *)it)->refcount, 1); @@ -115,7 +115,7 @@ int main(int argc, char **argv) 0); TEST_EQUAL_I(iret, 0); TEST_NOT_NULL(fp); - it = tar_open_stream(fp); + it = tar_open_stream(fp, NULL); TEST_NOT_NULL(it); /* read entry */ diff --git a/lib/tar/test/tar_iterator2.c b/lib/tar/test/tar_iterator2.c index 681835d..7b22af3 100644 --- a/lib/tar/test/tar_iterator2.c +++ b/lib/tar/test/tar_iterator2.c @@ -57,7 +57,7 @@ int main(int argc, char **argv) 0); TEST_EQUAL_I(iret, 0); TEST_NOT_NULL(fp); - it = tar_open_stream(fp); + it = tar_open_stream(fp, NULL); TEST_NOT_NULL(it); sqfs_drop(fp); diff --git a/lib/tar/test/tar_iterator3.c b/lib/tar/test/tar_iterator3.c index f8d0bda..7973441 100644 --- a/lib/tar/test/tar_iterator3.c +++ b/lib/tar/test/tar_iterator3.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) TEST_EQUAL_I(ret, 0); TEST_NOT_NULL(fp); TEST_EQUAL_UI(((sqfs_object_t *)fp)->refcount, 1); - it = tar_open_stream(fp); + it = tar_open_stream(fp, NULL); TEST_NOT_NULL(it); TEST_EQUAL_UI(((sqfs_object_t *)fp)->refcount, 2); TEST_EQUAL_UI(((sqfs_object_t *)it)->refcount, 1); -- cgit v1.2.3