From 301ca5d2f14e85c54133c068fcee3e4544d68ccf Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 28 Apr 2023 23:29:25 +0200 Subject: Fix: gensquashfs: sort by file breaking up the directory list When inserting the selected entry, the next_by_type pointer is supposed to be cleared, but the code accidentaly broke up the next pointer, removing the element from the tree. Fixes: e1e655b02f6c54177f9070eeb221ab95c6d4e20f Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/sort_by_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/gensquashfs/src/sort_by_file.c b/bin/gensquashfs/src/sort_by_file.c index 8edbb90..a1aacc0 100644 --- a/bin/gensquashfs/src/sort_by_file.c +++ b/bin/gensquashfs/src/sort_by_file.c @@ -243,7 +243,7 @@ static void sort_file_list(fstree_t *fs) out_last = it; it = it->next_by_type; - out_last->next = NULL; + out_last->next_by_type = NULL; } } -- cgit v1.2.3