DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51DF0DXm1218523 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 51DF0DXm1218523 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=ClAcAQ4N X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C8FF3858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1739458812; bh=dSg/n5v+c4uT99O/5xG9Eo8l2BP2Rh3B2oBXiraYNpQ=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ClAcAQ4NYldM+jZYL7FtqxqFvNt3c0UxXRRLPR+1At5fxMxZPpdYBinp55cRQ1I7n wgVbNOpNDbgUMVtqWK7j7QWkXdZY7sXmlWCrmCGjYM8KB+EHmahpzKaUPomuvw+dSW 4ZYZn2/enKTcoudHBE7Bs9Eo7mdkBVoiQ00P3kIE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 541F73858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 541F73858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739458787; cv=none; b=j2KIlGr3hpt1LXbT2g9RFyYqPleve8KZ00/94CjYWNu8E91yQKEvlaID4gCh9cvNdC01LVusIvUnxVHJXYQLgfXQN9Mzkh0vJ/udXW/xlyIPQQvc8rxJ6rO6epluoo28zcDuZSDaQa/dsUOYjdsBAgkDPqlVaLLn92iJtvAckLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739458787; c=relaxed/simple; bh=CGPHkWA94kPoPKDBaYTkVlMzVmP2EMH3einEI8vKpfI=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=o/JKIBSfQrjAPtYb+62krBe8FDoaKIY2zyouzPvSVNxjI+9dN3KMsFzFTEJmrO8mC//UMntB7lV0JjBGlk1pDpPCO+/Cy/V0kSlF80VkOQ6iGqHY26AhlEv2JpnYavfwp6Z54b7LL/30ONeEmR4oHJJlB989NRMk18v/tL3kCtU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 541F73858D20 Message-ID: <49588f36-b414-495a-80e5-3b659b104bdd@SystematicSW.ab.ca> Date: Thu, 13 Feb 2025 07:59:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: coreutils-9.0-1: chmod -R silently returns failure if dir contains a symlink (regression) To: cygwin AT cygwin DOT com References: <89080ee5-6485-406b-b7da-d6033ce3c3e0 AT SystematicSW DOT ab DOT ca> Content-Language: en-CA Autocrypt: addr=Brian DOT Inglis AT SystematicSW DOT ab DOT ca; keydata= xjMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePbN LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT7ClgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDM44BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAfCfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: 8872A20030 X-Rspamd-Server: rspamout07 X-Stat-Signature: wnc3844fjw8ckoaka4i6qhajwwsipzpw X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+DVisa5kPILwhEHVrzTjwt9RJeqVNB8sQ= X-HE-Tag: 1739458783-566093 X-HE-Meta: U2FsdGVkX18ZLzamngyhIZUv4XJvNXoq9HV4YzXkm4IKoTY8KItuMA/7uAUABaJV+VDJaQZIXjiWfEMz1hP/A+W2hm9Co1OKrCpNVLJdxOaDENBT1skEItoLZR86q1zviLA65HV8KLHpvr9RxOPVr2tZnl7nNvEAtpJ8mz17b9Ml1WVYN8gldrSG2QPMMd+V//K++iSVA4W4iTUZ7NKpoIT1xmMClcqUfmTH93x66eqdlbkBdv6lUh0/WliKZ+EHxLRW9l0y4Avg6FIBPW2tEEfpdiUru1zV2sfz7tYl4U8fwwbsbczvMkT/BIeBixoZFZLu6yEMSsf4/VeyvDhPTBjJ87+OO1Z+aPUPi4a0OZeJIZxqQcQDaclt+JIOjO1UotxoELmYtngVZ+1z9X8IeCSj99tfsxKy6AZxE7Ib5wVRNhNaVgfoDA== X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , Christian Franke Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51DF0DXm1218523 On 2025-02-12 15:00, Christian Franke via Cygwin wrote: > 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. Thank you very much for testing and reporting. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- 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