]> git.ipfire.org Git - thirdparty/zstd.git/commit
Mimic gzip chown(gid), chmod(), chown(uid) Behavior
authorW. Felix Handte <w@felixhandte.com>
Wed, 18 Jan 2023 00:37:30 +0000 (16:37 -0800)
committerW. Felix Handte <w@felixhandte.com>
Wed, 18 Jan 2023 19:57:54 +0000 (11:57 -0800)
commit0d2d46022336b267e87d6bfb078ccc34d0ca8aad
treecd5fa2b88cef6883748218748dde38c0aaa02ec2
parent1e3eba65a647dbd35739f82b9afc2021af7542f3
Mimic gzip chown(gid), chmod(), chown(uid) Behavior

Avoids a race condition in which we unintentionally open up permissions to
the wrong group.
programs/util.c
tests/cli-tests/file-stat/compress-file-to-file.sh
tests/cli-tests/file-stat/compress-file-to-file.sh.stderr.exact
tests/cli-tests/file-stat/decompress-file-to-file.sh
tests/cli-tests/file-stat/decompress-file-to-file.sh.stderr.exact