GNU bug report logs -
#50784
coreutils 9.0 sometimes gets spurious failures in chmod -R
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 24 Sep 2021 23:48:43 +0100
with message-id <07a23500-3f15-daf2-1244-a472634b377b <at> draigBrady.com>
and subject line Re: bug#50784: coreutils 9.0 sometimes gets spurious failures in chmod -R
has caused the debbugs.gnu.org bug report #50784,
regarding coreutils 9.0 sometimes gets spurious failures in chmod -R
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
50784: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50784
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
After I upgraded my system (locally built) to coreutils 9.0, I noticed
that my lightly modified sbuild started getting build failures when it
tries to run "chmod -R g+w /<<BUILDDIR>>" (as root) in the chroot.
I'm not sure exactly what combination of files triggers the error, but
I'm able to reproduce it roughly as follows:
cd /tmp
tar -x -f .../coreutils-9.0.tar.xz
cd coreutils-9.0
mkdir obj-x86_64-linux-gnu
cd obj-x86_64-linux-gnu
../configure --prefix=/usr
make -j8
chmod -R u+w /tmp/coreutils-9.0/obj-x86_64-linux-gnu
echo $?
In the last chmod command, there are no failures reported; and even if
I run it under strace, I see no hints of any failed system calls other
than one in access("/etc/ld.so.preload", R_OK) at startup -- and
certainly no failures in the fchmodat() system calls. Yet the exit
code from the process is 1.
I wasn't seeing any such errors under sbuild using coreutils 8.32.
--
Daniel Schepler
[Message part 3 (message/rfc822, inline)]
On 24/09/2021 22:42, Daniel Schepler wrote:
> On Fri, Sep 24, 2021 at 1:02 PM Pádraig Brady <P <at> draigbrady.com> wrote:
>>> Could you try with the following untested diff:
>>
>> Tested equivalent patch is attached.
>
> Yes, with chmod-fix-symlink-exit.patch applied and the resulting
> packages installed for testing, the issue does appear to be resolved.
Thanks for testing.
Pushed (with NEWS update).
marking this as done.
thanks,
Pádraig
This bug report was last modified 3 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.