commit:     665ed4ce5c2a6c749bf794860ccd4d62e8f278e0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 24 13:44:29 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 27 20:27:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665ed4ce

unpacker.eclass: Remove `-f` from zstd arguments

Remove `-f` from zstd arguments.  This option causes zstd to ignore
input errors, notably causing it to pass invalid files through rather
than returning an error.

Closes: https://bugs.gentoo.org/872662
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/unpacker.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index f6e83c53bf23..c26523a419df 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -406,7 +406,7 @@ _unpacker() {
                : ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P 
lzip)}
                comp="${UNPACKER_LZIP} -dc" ;;
        *.zst)
-               comp="zstd -dfc" ;;
+               comp="zstd -dc" ;;
        esac
 
        # then figure out if there are any archiving aspects

Reply via email to