diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-28 23:29:25 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-29 00:26:32 +0200 |
commit | 301ca5d2f14e85c54133c068fcee3e4544d68ccf (patch) | |
tree | 8a256dc9db0ad6106bc14b3edae17a7c24fc4826 /bin/gensquashfs/src | |
parent | b826045d0427db2c18eedda7e02f21acfc2ce62e (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/src')
-rw-r--r-- | bin/gensquashfs/src/sort_by_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |