Pádraig Brady wrote:
> The attached fixes this by including the setgid bit
> in the fallback mode if appropriate.
Thanks. I confirm that it fixes the test failure.
On 24/03/2024 16:42, Bruno Haible wrote:
The cp/preserve-mode test fails on Alpine Linux 3.18.
test-suite.log from Alpine Linux 3.18:
FAIL: tests/cp/preserve-mode
+ mkdir d1 d2
+ chmod 705 d2
+ cp '--no-preserve=mode' -r d2 d3
+ get_mode d1
+ stat '-c%f' d1
+ g
The cp/preserve-mode test fails on Alpine Linux 3.18.
test-suite.log from Alpine Linux 3.18:
FAIL: tests/cp/preserve-mode
+ initial_cwd_=/home/bruno/coreutils-9.4.170-7b206/build
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /home/bruno/coreutils-9.4.170-7b206/