]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Attempt to Fix `stat` Format for BSDs
authorW. Felix Handte <w@felixhandte.com>
Mon, 8 Mar 2021 23:03:55 +0000 (18:03 -0500)
committerW. Felix Handte <w@felixhandte.com>
Wed, 5 May 2021 17:10:34 +0000 (13:10 -0400)
tests/playTests.sh

index 869b4445e6b31f8772d288ecd3f7ab8b6f70266d..5415656e0421a6c46a631a18c5785f11e98f429d 100755 (executable)
@@ -126,7 +126,7 @@ esac
 
 GET_PERMS="stat -c %a"
 case "$UNAME" in
-    Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %a" ;;
+    Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %Lp" ;;
 esac
 
 assertFilePermissions() {