1
0
mirror of https://github.com/facebook/zstd.git synced 2025-04-21 23:05:51 +03:00
zstd/tests/cli-tests/file-stat/decompress-file-to-file.sh
W. Felix Handte 0d2d460223 Mimic gzip chown(gid), chmod(), chown(uid) Behavior
Avoids a race condition in which we unintentionally open up permissions to
the wrong group.
2023-01-18 11:57:54 -08:00

9 lines
104 B
Bash
Executable File

#!/bin/sh
set -e
datagen | zstd -q > file.zst
chmod 642 file.zst
zstd -dq --trace-file-stat file.zst