• [gentoo-dev] [PATCH 02/15] unpacker.eclass: Remove `-f` from zstd argum

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun Sep 25 20:30:01 2022
    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@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
    --
    2.37.3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)