www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/12/17:01:55

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51CM1tf9940092
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51CM1tf9940092
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=RdqjdGp5
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 573123858415
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1739397714;
bh=sK6pZYdjigYZzSCWpiE3vG7Q3dNwbJdJV65gDdaxKtc=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=RdqjdGp5wxbKvjGDIZMh0JS8EIDUKfqiEVG3ZpSKZaTZWMRzJI3NXlsHl6huk1DGK
6LRE6t4hgjRQ4Y58NdpUHijpH8d7nLh+K2ltsdBhVR7AfU4TV8QdRNSAqekQ4UH2Sc
vtsh2bdIDcfOf9ibAVE68yZ4FMAObr5r8JJ0yi7c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1F8D3858C35
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A1F8D3858C35
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739397635; cv=none;
b=VVFdALFq9MSuK6pSd0Cm+Bi9wzPnwHpKSCasfYm2nv5TCjbX4EaI5Zbb4fGrp0ymENsOPcaJVLpmHmpEQV7yYpvX9FoSnBra+BFEt3iEbcON3kQDUjd6cSgNEPXgk+fKH2yjS4pVjbzEF6eNK/vqeEjLAsjvgG3YX+WYdA1Zb9g=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1739397635; c=relaxed/simple;
bh=fH4mfcx2wG/USODj6T4jCBi2k0bm1W1XhMoGTrGhWPA=;
h=Subject:To:From:Message-ID:Date:MIME-Version;
b=n9s9t8DtMRjV+TaXU3Yp2T+B9l46AcPzXyvWgPslrMZSiJq6HNvCe8XzqNsEJDoLjwW2EG1fg67Ycy4jrlE1VxvUd2LBMGdVcOCuOgQlzGg71MRHkYaKG30Rlwp6wQ2ouYUZpuvXUIaiG1zDqO/926OaM8j97mjS9TECaxxzR98=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1F8D3858C35
Subject: Re: coreutils-9.0-1: chmod -R silently returns failure if dir
contains a symlink (regression)
To: cygwin AT cygwin DOT com
References: <c671ee35-f342-c63f-b7ad-56b7508151d6 AT t-online DOT de>
<89080ee5-6485-406b-b7da-d6033ce3c3e0 AT SystematicSW DOT ab DOT ca>
Message-ID: <be191229-f3e7-b584-a0cc-276f8f15904e@t-online.de>
Date: Wed, 12 Feb 2025 23:00:28 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101
SeaMonkey/2.53.20
MIME-Version: 1.0
In-Reply-To: <89080ee5-6485-406b-b7da-d6033ce3c3e0@SystematicSW.ab.ca>
X-TOI-EXPURGATEID: 150726::1739397629-DBFFC906-0AFBC8C5/0/0 CLEAN NORMAL
X-TOI-MSGID: 1bb0d76b-77eb-4816-a1f1-d1f46c1a0bad
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Christian Franke via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Christian Franke <Christian DOT Franke AT t-online DOT de>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51CM1tf9940092

Brian Inglis via Cygwin wrote:
> On 2025-02-09 08:01, Christian Franke via Cygwin wrote:
>> Testcase:
>>
>> $ uname -r
>> 3.5.7-1.x86_64
>>
>> $ cygcheck -f /bin/chmod
>> coreutils-9.0-1
>>
>> $ mkdir dir
>>
>> $ touch dir/file
>>
>> $ chmod -R -v g-w dir; echo $?
>> mode of 'dir' retained as 0755 (rwxr-xr-x)
>> mode of 'dir/file' retained as 0644 (rw-r--r--)
>> 0
>>
>> $ ln -s file dir/link
>>
>> $ chmod -R -v g-w dir; echo $?
>> mode of 'dir' retained as 0755 (rwxr-xr-x)
>> mode of 'dir/file' retained as 0644 (rw-r--r--)
>> neither symbolic link 'dir/link' nor referent has been changed
>> 1
>>
>> $ chmod -R g-w dir; echo $?
>> 1
>>
>> $ chmod -v g-w dir dir/file dir/link; echo $?
>> mode of 'dir' retained as 0755 (rwxr-xr-x)
>> mode of 'dir/file' retained as 0644 (rw-r--r--)
>> mode of 'dir/link' retained as 0644 (rw-r--r--)
>> 0
>>
>> $ chmod -R -v g+w dir; echo $?
>> mode of 'dir' changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
>> mode of 'dir/file' changed from 0644 (rw-r--r--) to 0664 (rw-rw-r--)
>> neither symbolic link 'dir/link' nor referent has been changed
>> 1
>>
>> $ chmod -R g-w dir; echo $?
>> 1
>>
>> Exit status 1 does not occur with chmod from coreutils 8.32-1.
>
> A major change in coreutils 9 was to use the f...at() directory 
> relative functions, so the error may be related to that symlink, 
> unreported due to a bug (in our/my patches, underlying, or upstream):
>
> EOPNOTSUPP    The  AT_SYMLINK_NOFOLLOW bit is set in the flag 
> argument, path names a symbolic link, and the system does not support 
> changing the mode of a symbolic link.
>
> Appears that it is a known bug and should have been fixed upstream; 
> see the test release announcement for many chmod fixes and changes 
> including more options:
>
>     https://cygwin.com/pipermail/cygwin-announce/2025-January/012042.html
>
> "...
> 2022-04-15    9.1
>
> Bug fixes
>
> - chmod -R no longer exits with error status when encountering symlinks.
>   All files would be processed correctly, but the exit status was 
> incorrect.
>   [bug introduced in coreutils-9.0]
> ..."
>
> If you can, please check again with coreutils test 9.5.
> I am working on updating to 9.6, will recheck as part of that, and fix 
> or report a regression, if an issue.
>

Problem does no longer occur with 9.5-1 and 9.6-1 test releases.

-- 
Regards,
Christian


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019