Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 02/15] unpacker.eclass: Remove `-f` from zstd arguments
Date: Sun, 25 Sep 2022 18:24:04
Message-Id: 20220925182317.1559529-3-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support by "Michał Górny"
1 Remove `-f` from zstd arguments. This option causes zstd to ignore
2 input errors, notably causing it to pass invalid files through rather
3 than returning an error.
4
5 Closes: https://bugs.gentoo.org/872662
6 Signed-off-by: Michał Górny <mgorny@g.o>
7 ---
8 eclass/unpacker.eclass | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
12 index f6e83c53bf23..c26523a419df 100644
13 --- a/eclass/unpacker.eclass
14 +++ b/eclass/unpacker.eclass
15 @@ -406,7 +406,7 @@ _unpacker() {
16 : ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P lzip)}
17 comp="${UNPACKER_LZIP} -dc" ;;
18 *.zst)
19 - comp="zstd -dfc" ;;
20 + comp="zstd -dc" ;;
21 esac
22
23 # then figure out if there are any archiving aspects
24 --
25 2.37.3