Ticket #4678: usqfs parser ignored first 4 lines of the file listing

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2025-03-28 15:28:23 +01:00
parent f55ef44d3e
commit 4aa2036040
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#
# Squash file system
#
# tested to comply with unsquashfs version 4.2 (2011/02/28)'s output
# tested to comply with the output of unsquashfs version 4.6.1 (2023/03/25)
SQUASHFS="${MC_TEST_EXTFS_LIST_CMD:-unsquashfs}"
AWK="@AWK@"
@ -13,8 +13,6 @@ mcsqfs_list ()
{
$SQUASHFS -d "" -lls "$1" | $AWK '
{
if (NR < 5)
next
split($2, a, "/")
file_type=substr($1,1,1)
file_size=file_type == "c" || file_type == "b" ? 0 : $3

View File

@ -1,3 +1,7 @@
drwxr-xr-x 1 235 2024-09-23 14:34:00
drwxr-xr-x 1 778 2024-09-23 14:34:00 /bin
lrwxrwxrwx 1 7 2024-09-23 14:34:00 /bin/ash -> busybox
-rwxr-xr-x 1 205 2024-09-23 14:34:00 /bin/board_detect
-rwxr-xr-x 1 327717 2024-09-23 14:34:00 /bin/busybox
lrwxrwxrwx 1 7 2024-09-23 14:34:00 /bin/cat -> busybox
lrwxrwxrwx 1 7 2024-09-23 14:34:00 /bin/chgrp -> busybox