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/compress-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

10 lines
111 B
Bash
Executable File

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