[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-9.4.170-7b206 cp/preserve-mode test failure
From: |
Pádraig Brady |
Subject: |
Re: coreutils-9.4.170-7b206 cp/preserve-mode test failure |
Date: |
Mon, 25 Mar 2024 22:38:02 +0000 |
User-agent: |
Mozilla Thunderbird |
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
+ get_mode d3
+ stat '-c%f' d3
+ test 45ed '=' 41ed
+ fail=1
This is another setgid issue, and looks like a real bug.
It was there since 8.20 (2012) it seems.
cp is not maintaining the setgid bit, that mkdir(2) created.
I can't repro on my Fedora system, but can on Alpine,
where set_acl() falls back to a chmod because it can't set ACLs.
The attached fixes this by including the setgid bit
in the fallback mode if appropriate.
cheers,
Pádraig
cp-dir-setgid.patch
Description: Text Data
coreutils-9.4.170-7b206 ls/dired test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 chown/preserve-root test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 cp/preserve-mode test failure, Bruno Haible, 2024/03/24
- Re: coreutils-9.4.170-7b206 cp/preserve-mode test failure,
Pádraig Brady <=
coreutils-9.4.170-7b206 chmod/symlinks test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 misc/numfmt test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 test failures on AIX 7.3, Bruno Haible, 2024/03/24