1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

Fix detection of lz4 header magic number

This commit is contained in:
Natanael Copa 2023-03-28 17:25:52 +02:00
parent ab46d7223f
commit bbb0c19ae6

View File

@ -65,7 +65,7 @@ save_userdata() {
cmd="lzma -dc"
elif match_header '\211\114\132' "$tmpfile"; then
cmd="lzop -dc"
elif match_header '\002!L\030' "$tmpfile"; then
elif match_header '\004\042\115\030' "$tmpfile"; then
cmd="lz4 -dc"
elif match_header '(\265/\375' "$tmpfile"; then
cmd="zstd -dc"