Subject: bug#51857: cross-filesystem copying broken on macOS with coreutils >= 9.0

From: Sudhip Nashi <[email-masked]>
Date: Tue, 16 Nov 2021 10:40:31 -0600

> So, not only does macOS lseek disagree with all other implementations, it even disagrees with the Darwin documentation.
Oh wow, that’s convoluted.

> To work around this macOS problem I installed the attached further patch into Gnulib and propagated it into coreutils. Please try the latest coreutils version on Savannah, or you can simply run configure+make from the tarball that is temporarily at:
> 
> https://web.cs.ucla.edu/~eggert/coreutils-9.0.28-6d0f0.tar.gz
> <0001-lseek-port-around-macOS-SEEK_HOLE-glitch.patch>
It looks like this patch fixes the problem, and a quick checksum verifies this.