On 2025-09-20 13:43, Steffen Nurpmeso wrote:
  |Anyway, I'm looking into a Gnulib workaround for the fakeroot bug - and
  |it is a bug, in that fakeroot chown does not conform to POSIX here. That
  |should fix coreutils as well. It's not a bug in coreutils itself.

Thank you!

I pushed what I hope is a workaround for the fakeroot bug into Gnulib, here:

https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=162ce0b783ba837e5e690a5bde812341853e109b
https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=12171837a9f94971bb0c91de193543145ef68e65

These patches also fix unlikely security races in OpenBSD.

Fixes along these lines should appear in a future coreutils release. It's not clear whether this will be the next release (which is due shortly), but at least by the release after that.

You should be able to test the fix now by doing something along these lines (but it may take a while):

git clone https://git.savannah.gnu.org/git/coreutils.git
cd coreutils
./bootstrap
git checkout -b testbranch
git submodule foreach git pull origin master
git commit -m 'build: update gnulib submodule to latest' gnulib
./bootstrap --skip-po
./configure
make check

Closing the coreutils bug report.

PS. Any word on fixes for the actual bug here? The bug that's in fakeroot *ch(mod|own)* emulation?



Reply via email to