From 7a39921d7fff089c87ac183d3c0d6e42e5cbaa04 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 29 Apr 2023 16:08:38 +0200 Subject: Move the pattern matching from gensquashfs to dir_tree_iterator_t A simple unit test is added that mainly checks for the behavior of recursing into a sub-tree and only matching the children at the end, but not reporting the parents that don't match. The behavior is inteded to immitate the `find` command. Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/gensquashfs/src/mkfs.c') diff --git a/bin/gensquashfs/src/mkfs.c b/bin/gensquashfs/src/mkfs.c index 8ad394b..b64a217 100644 --- a/bin/gensquashfs/src/mkfs.c +++ b/bin/gensquashfs/src/mkfs.c @@ -179,7 +179,7 @@ int main(int argc, char **argv) if (dir == NULL) goto out; - ret = fstree_from_dir(&sqfs.fs, dir, NULL, NULL); + ret = fstree_from_dir(&sqfs.fs, dir); sqfs_drop(dir); if (ret != 0) goto out; -- cgit v1.2.3