nixpkgs/pkgs/tools/compression/zstd/playtests-darwin.patch
Thomas Gerbet aea3ad0d4d zstd: 1.4.8 -> 1.4.9
Fixes CVE-2021-24032.
2021-03-16 09:33:46 +01:00

28 lines
757 B
Diff

--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -112,17 +112,10 @@ case "$OS" in
esac
case "$UNAME" in
- Darwin) MD5SUM="md5 -r" ;;
- FreeBSD) MD5SUM="gmd5sum" ;;
- NetBSD) MD5SUM="md5 -n" ;;
- OpenBSD) MD5SUM="md5" ;;
*) MD5SUM="md5sum" ;;
esac
MTIME="stat -c %Y"
-case "$UNAME" in
- Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
-esac
DIFF="diff"
case "$UNAME" in
@@ -842,7 +835,6 @@ $MD5SUM dirTestDict/* > tmph1
zstd -f --rm dirTestDict/* -D tmpDictC
zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
case "$UNAME" in
- Darwin) println "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5
*) $MD5SUM -c tmph1 ;;
esac
rm -rf dirTestDict