Re: SEEK_DATA should fail at EOF (was: coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed)

2025-02-14 Thread Cedric Blancher via Cygwin
On Fri, 14 Feb 2025 at 12:25, Christian Franke via Cygwin wrote: > > Christian Franke via Cygwin wrote: > > Testcase: > > > > $ uname -r > > 3.5.7-1.x86_64 > > > > $ cygcheck -f /bin/cp.exe > > coreutils-9.6-1 > > > > $ for i in 1 2 3; do cat /bin/cygwin1.dll > file$i; done > > > > $ compact /C fi

Re: /bin/cp of sparse files broken in 3.6.0-0.362.g68c13dc92f65.x86_64?

2025-02-14 Thread Cedric Blancher via Cygwin
On Thu, 13 Feb 2025 at 15:36, Corinna Vinschen via Cygwin wrote: > > On Feb 13 09:02, Corinna Vinschen via Cygwin wrote: > > This: > > > > > - Cygwin mount has "sparse" option (mount Y: -o sparse,exec /cygdrive/y) > > > > doesn't work: > > > > $ cat /etc/fstab > > Y: /mnt/y binary,posix=0,spar

Re: Request to package perl module installer, App::cpanminus

2025-02-14 Thread Dr Bean via Cygwin
On Sun, 09 Feb 2025, ASSI via Cygwin wrote: > Dr Bean via Cygwin writes: > > Thanks for the cygport file. That will help Soren or me get started. > > But we will probably need help uploading to the cygwin package repos. > > You have apparently not understood what I said. The problem is not > cre

Re: SEEK_DATA should fail at EOF (was: coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed)

2025-02-14 Thread Corinna Vinschen via Cygwin
On Feb 14 14:14, Corinna Vinschen via Cygwin wrote: > On Feb 14 13:49, Corinna Vinschen via Cygwin wrote: > > On Feb 14 12:24, Christian Franke via Cygwin wrote: > > > Hmm... does "beyond" mean '>=' or '>' ? > > > > ...do you think this fixes it? > > > > diff --git a/winsup/cygwin/fhandler/base.c

Re: Cygwin 3.6 /usr/bin/cp from "coreutils" version 9.5-1 stuck in an endless loop...

2025-02-14 Thread Christian Franke via Cygwin
On Tue, Jan 14, 2025, Roland Mainz via Cygwin wrote: On Tue, Jan 14, 2025 at 7:19 AM Brian Inglis via Cygwin wrote: On 2025-01-13 13:10, Roland Mainz via Cygwin wrote: I just hit an endless loop with /usr/bin/cp from "coreutils" version 9.5-1 copying a larger *.pdb file (it seems that only thi

Re: SEEK_DATA should fail at EOF (was: coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed)

2025-02-14 Thread Corinna Vinschen via Cygwin
On Feb 14 13:49, Corinna Vinschen via Cygwin wrote: > On Feb 14 12:24, Christian Franke via Cygwin wrote: > > Hmm... does "beyond" mean '>=' or '>' ? > > ...do you think this fixes it? > > diff --git a/winsup/cygwin/fhandler/base.cc b/winsup/cygwin/fhandler/base.cc > index 8f3dbd4ed51a..79dfaaa59

Re: SEEK_DATA should fail at EOF (was: coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed)

2025-02-14 Thread Corinna Vinschen via Cygwin
On Feb 14 12:24, Christian Franke via Cygwin wrote: > Christian Franke via Cygwin wrote: > > Testcase: > > [...] > > Upstream bug? > > Possibly not. A closer look shows that the main loop in copy.c:lseek_copy() > expects that SEEK_DATA fails with ENXIO at EOF. > > https://github.com/coreutils/cor

SEEK_DATA should fail at EOF (was: coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed)

2025-02-14 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Testcase: $ uname -r 3.5.7-1.x86_64 $ cygcheck -f /bin/cp.exe coreutils-9.6-1 $ for i in 1 2 3; do cat /bin/cygwin1.dll > file$i; done $ compact /C file2 # NTFS compression ... (1.7 : 1) ... $ compact /C /EXE:LZX file3 # Compact OS LZX compression ... (2.8