Paul Eggert wrote in <[email protected]>: |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=162ce0b783b\ |a837e5e690a5bde812341853e109b
That is great! Yes. |https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=12171837a9f\ |94971bb0c91de193543145ef68e65 | |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? I had Bcc'd him several times (maybe too often even), and now place him in Cc. I have heard nothing back until now; i think the "if user owns, and chowns to root, and EPERM happens, updating timestamp" would not be too fragile; it, however, is only a guess whether it would succeed without fakeroot, so... By the way, was this bug ever reported to OpenBSD? I do not see anything alike in since 2013? https://marc.info/?l=openbsd-bug I Bcc: [email protected] and ensure it gets posted (somehow), maybe just a miss that chown() does not update the file change time. --End of <[email protected]> Thank you! Ciao, --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
