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-17 Thread Corinna Vinschen via Cygwin
On Feb 15 12:18, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > 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

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-15 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: 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/fha

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: 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: 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

coreutils-9.6-1 (TEST): cp: infinite SEEK_SET/DATA/HOLE loop if file is compressed

2025-02-13 Thread Christian Franke via Cygwin
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 : 1) ... $ stat -c '%b %s %n' file?

Re: Cygwin 3.6 possible issue handling compressed .pdb files on SSD?

2025-01-15 Thread Brian Inglis via Cygwin
n/cp works without problems. I think the issues here are: 1. Coreutils 9.5-1 /bin/cp erroneously assumes that a file is sparse if the number of blocks is smaller than $((filesize / fs_blocksize)) - but in this case the file is NOT sparse, just compressed. 2. The loop to copy a sparse file is faulty becau

Re: Cygwin 3.6 possible issue handling compressed .pdb files on SSD?

2025-01-15 Thread Corinna Vinschen via Cygwin
typeset -a FileAttributes=( > > FILE_ATTRIBUTE_ARCHIVE > > FILE_ATTRIBUTE_COMPRESSED > > ) > > ) > > snip > > > > If I remove the "FILE_ATTRIBUTE_COMPRESSED" flag /bin/cp works without > > problems. > > I thi

Re: Cygwin 3.6 possible issue handling compressed .pdb files on SSD?

2025-01-15 Thread Brian Inglis via Cygwin
ously assumes that a file is sparse if the number of blocks is smaller than $((filesize / fs_blocksize)) - but in this case the file is NOT sparse, just compressed. 2. The loop to copy a sparse file is faulty because there are no holes in that file. That itself is IMHO already a bad idea to hav

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-22 Thread Achim Gratz
Michael Wild writes: > Thanks, but until I get a running setup.exe I can't get a running > Cygwin and only then I can get a running apt-cyg, right? You only need a UPX executable, you can get it from upstream: https://github.com/upx/upx/releases And (somewhat uncharacteristically) they actually

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-22 Thread Michael Wild
On Tue, Jan 22, 2019 at 5:54 PM Brian Inglis wrote: > > But how do I bootstrap? Can I just use the download from upx.github.io? > > That'll be > > what I try next then. > > apt-cyg install upx && man upx # ;^> Thanks, but until I get a running setup.exe I can't get a running Cygwin and only then

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-22 Thread Brian Inglis
On 2019-01-21 14:12, Michael Wild wrote: > On Mon, 21 Jan 2019, 20:55 Achim Gratz wrote: >> Michael Wild writes: >>> Thanks. I have very little hope of getting it whitelisted... Is UPX >>> compression really a necessity? Otherwise I'll have to resort to my >>> custom compiled versions. >> No, t

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-21 Thread Michael Wild
On Mon, 21 Jan 2019, 20:55 Achim Gratz wrote: > Michael Wild writes: > > Thanks. I have very little hope of getting it whitelisted... Is UPX > > compression really a necessity? Otherwise I'll have to resort to my > custom > > compiled versions. > > No, that's just so the download is smaller. Whic

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-21 Thread Achim Gratz
Michael Wild writes: > Thanks. I have very little hope of getting it whitelisted... Is UPX > compression really a necessity? Otherwise I'll have to resort to my custom > compiled versions. No, that's just so the download is smaller. Which isn't the point if you've built it yourself anyway… you co

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-21 Thread Michael Wild
On Mon, 21 Jan 2019, 18:19 Achim Gratz wrote: > Michael Wild writes: > > Anybody else experiencing this? I tried trawling through the mailing > > list, but nothing specific turned up. Maybe this is an interaction > > with the BLODA imposed on me by our company IT policy. But then I'd > > expect ot

Re: UPX compressed setup-x86_64.exe crashes on Win10

2019-01-21 Thread Achim Gratz
Michael Wild writes: > Anybody else experiencing this? I tried trawling through the mailing > list, but nothing specific turned up. Maybe this is an interaction > with the BLODA imposed on me by our company IT policy. But then I'd > expect others to have seen this issue too. It wouldn't be the fir

UPX compressed setup-x86_64.exe crashes on Win10

2019-01-21 Thread Michael Wild
new laptop, and surprisingly it worked. I then tried the stripped version. Again, it worked. However, when I tried to run the UPX compressed executable, I got the segfault again. Anybody else experiencing this? I tried trawling through the mailing list, but nothing specific turned up. Maybe this is

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Eric Blake
am; but I don't think anyone will want to take on a patch like that. > It seems gunzip had no problem recognizing the file as double compressed. No. Your manual gunzip removed one layer of compression, then your tar command (with or without the 'z') ran a second gunzip to remove

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
> Date: Mon, 20 Apr 2015 16:38:49 -0700 > From: garyj...@spocom.com > To: cygwin@cygwin.com > Subject: Re: tar zxvf won't work with Redhat generated compressed tar file > > On 2015-04-20, Murthy Gandikota wrote: > >>>>

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Gary Johnson
On 2015-04-20, Murthy Gandikota wrote: > >> Then it looks like you have a DOUBLE-compressed file. That is, someone > >> took a .tar.gz file, and ran THAT through gzip again (which seldom does > >> anything except make a LARGER file - because the first round of &

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Andrey Repin
Greetings, Murthy Gandikota! >>> anything except make a LARGER file - because the first round of >>> compression removed any redundancy). Tar cannot read a >>> double-compressed stream, but breaking things into two steps lets you >>> get back to a single compre

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
> From: murth...@hotmail.com > To: ebl...@redhat.com; cygwin@cygwin.com > Subject: RE: tar zxvf won't work with Redhat generated compressed tar file > Date: Mon, 20 Apr 2015 22:00:10 + > > > >

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
> Date: Mon, 20 Apr 2015 15:16:43 -0600 > From: ebl...@redhat.com > To: cygwin@cygwin.com > Subject: Re: tar zxvf won't work with Redhat generated compressed tar file > > On 04/20/2015 03:08 PM, Murthy Gandikota wrote: > &

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Eric Blake
ink it is actually a tar archive? >> What >> >> gunzip> mytar < mytar.gz; file mytar >> >> says? >> > Sorry, didn't notice the top-posting here is the output to the command > > mytar: gzip compressed data, last modified: Tue Mar 24 03:50

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
> Date: Mon, 20 Apr 2015 23:50:36 +0300 > From: anrdae...@yandex.ru > To: murth...@hotmail.com; cygwin@cygwin.com > Subject: Re: tar zxvf won't work with Redhat generated compressed tar file > > Greetings, Murthy Gandikota! &g

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Andrey Repin
Greetings, Murthy Gandikota! Please don't top-post. Thank you. And please no cleartext emails in quoted text. >>> I am using Cygwin64. I am getting a file from RedHat in tar + zip format. >>> Currently I am able to unzip it and untar it in 2 steps as follows: >> >>> $gunzip mytar.gz >>> $tar xvf

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Eric Blake
(My ancient > CentOS box has it, though.) GNU tar does NOT use compression libraries; rather, it shells out (via an equivalent to popen()) to an external program. If you tell tar which format a file was compressed in, it should try to use that compression utility without questions; if you om

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Eric Blake
On 04/20/2015 02:06 PM, Eric Blake wrote: > But I'd need to be able to reproduce the problem locally before I can > provide an updated tar build for cygwin that fixes the problem. As it is, it looks like I'm overdue for a tar build. cygwin tar is still at 1.27.1, while upstream has released 1.28.

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Eric Blake
On 04/20/2015 12:40 PM, Murthy Gandikota wrote: > Hi All > > I am using Cygwin64. I am getting a file from RedHat in tar + zip format. > Currently I am able to unzip it and untar it in 2 steps as follows: > > $gunzip mytar.gz > $tar xvf mytar According to upstream, some

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
my provider for a sample. Thanks > From: jlel...@pavlovmedia.com > To: bertrand.cap...@chunkz.net; cygwin@cygwin.com; murth...@hotmail.com > Subject: RE: tar zxvf won't work with Redhat generated compressed tar file > Date: Mon, 20 Apr 2015 19:53:15 + > > The

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Joi L. Ellis
The 'file' command isn't recursive. If you gzip a tar file, it will only say it's a compressed file, it won't say it's a compressed tar file. See the example I posted myself earlier in the thread. I had theorized that the original file is zipped, not gzipped, a

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
r zxvf won't work with Redhat generated compressed tar file > >> Ran this command on Cygwin64 >> >> $file mytar.gz >> mytar.gz: gzip compressed data, from Unix >> >> Did you want me to run this command on Linux? >> >> Thanks > > Well as I

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Bertrand Caplet
> Ran this command on Cygwin64 > > $file mytar.gz > mytar.gz: gzip compressed data, from Unix > > Did you want me to run this command on Linux? > > Thanks Well as I said it's a gzip archive not a tar + gzip you can't extract it with tar. -- CHUNKZ.NET - scr

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
To: murth...@hotmail.com; cygwin@cygwin.com > Subject: Re: tar zxvf won't work with Redhat generated compressed tar file > > Greetings, Murthy Gandikota! > >> Hi All > >> I am using Cygwin64. I am getting a file from RedHat in tar + zip format. >> Currently I am able

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread J. David Boyd
Daniel writes: > Murthy Gandikota wrote: >> Hi All >> >> I am using Cygwin64. I am getting a file from RedHat in tar + zip format. >> Currently I am able to unzip it and untar it in 2 steps as follows: >> >> $gunzip mytar.gz >> $tar xvf mytar >> >> However, I would like to do the following: >> >

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Andrey Repin
Greetings, Murthy Gandikota! > Hi All > I am using Cygwin64. I am getting a file from RedHat in tar + zip format. > Currently I am able to unzip it and untar it in 2 steps as follows: > $gunzip mytar.gz > $tar xvf mytar > However, I would like to do the following: > $tar -zxvf mytar.gz > The

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
Ran this command on Cygwin64 $file mytar.gz mytar.gz: gzip compressed data, from Unix Did you want  me to run this command on Linux? Thanks > Date: Mon, 20 Apr 2015 21:18:09 +0200 > From: bertrand.cap...@chunkz.net > To: cygwin@cygwin.com >

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Daniel
Murthy Gandikota wrote: Hi All I am using Cygwin64. I am getting a file from RedHat in tar + zip format. Currently I am able to unzip it and untar it in 2 steps as follows: $gunzip mytar.gz $tar xvf mytar However, I would like to do the following: $tar -zxvf mytar.gz The error message I see

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Bertrand Caplet
using, and what command(s) created the > compressed tarball you're having difficulty with? > > If you run the 'file' command on the tarball file, what does 'file' say it > contains? > > rake-0.8.4.tar.gz: gzip compressed data, last modified: Wed Mar

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Joi L. Ellis
mmand(s) created the compressed tarball you're having difficulty with? If you run the 'file' command on the tarball file, what does 'file' say it contains? rake-0.8.4.tar.gz: gzip compressed data, last modified: Wed Mar 4 07:31:25 2009, from Unix Note that some flavors

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
Got this message from my upstream Linux sender Please try as well but I previously tried renaming the .tar to .tar.gz (this is an old Linux issue - not knowing a .tar was compressed unless it had .gz too - that I haven't seen required in years) - this had no i

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Bertrand Caplet
> Did you mean tar zcvf ? It still doesn't work on RedHat and Cygwin64. Yes, I meant this. What does not work ? Do you have a error message ? -- CHUNKZ.NET - script kiddie and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: 37F70C30 GPG FP: 134

RE: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
Did you mean tar zcvf ? It still doesn't work on RedHat and Cygwin64. Thanks > Date: Mon, 20 Apr 2015 20:44:56 +0200 > From: bertrand.cap...@chunkz.net > To: cygwin@cygwin.com > Subject: Re: tar zxvf won't work with Redhat generat

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Bertrand Caplet
> tar xcvf archive.tar.gz your-files I said tar xcvf for creating archive but it's tar zcvf my bad. -- CHUNKZ.NET - script kiddie and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: 37F70C30 GPG FP: 134A 4027 518B 5F4D D409 558D BA9B 7BF0 37F7 0

Re: tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Bertrand Caplet
Hey there, It's not working because you're trying to decompress a tar + gzip archive with tar zxvf but it's just a gzip archive. If you first make a tar + gzip archive with : tar xcvf archive.tar.gz your-files and then : tar zxvf archive.tar.gz It will be ok :-) Regards, -- CHUNKZ.NET - scr

tar zxvf won't work with Redhat generated compressed tar file

2015-04-20 Thread Murthy Gandikota
Hi All I am using Cygwin64. I am getting a file from RedHat in tar + zip format. Currently I am able to unzip it and untar it in 2 steps as follows: $gunzip mytar.gz $tar xvf mytar However, I would like to do the following: $tar -zxvf mytar.gz The error message I see is: tar: This does not l

RE: zgrep: "gzip: invalid compressed data--length error"

2015-04-20 Thread Vladimir Sakharuk
Looks like I am hitting zip/gzip incompatibilities. :( thank you all. -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Vladimir Sakharuk Sent: Monday, April 20, 2015 9:48 AM To: cygwin@cygwin.com Subject: zgrep: "gzip: invalid compr

zgrep: "gzip: invalid compressed data--length error"

2015-04-20 Thread Vladimir Sakharuk
How could I make zgrep work? zgrep shows error on archive while unzip -t unzip unzip -p|grep work without problem ~>unzip -t aa.zip Archive: aa.zip testing: aaOK No errors detected in compressed data of aa.zip. 4376671663 Jan 26 22:42 aa 386634752 Jan 28 16:21 aa.zip Zgrep wo

ImageMagick doesn't like compressed .ppm files (bug?)

2005-05-12 Thread Tim Day
On my proper unix/linux systems I do a lot of imaging work with .ppm.gz or .ppm.bz2 files (binary 'P6' PPM, not the 'P3' ASCII version). The ImageMagick utilities (e.g display, convert) understand this format and it works well. However, with Cygwin, having created an image.ppm.bz2 or image.ppm.gz

Re: WinXP compressed dirs will work?

2004-09-14 Thread Reini Urban
Christopher Faylor schrieb: On Tue, Sep 14, 2004 at 10:33:43AM +0200, Reini Urban wrote: Larry Hall schrieb: At 05:01 PM 9/13/2004, you wrote: If i compress a dir in the home directory using WinXP native compressing, will it work with cygwin??? Yes. Compression is taken care of by Windows at a v

Re: WinXP compressed dirs will work?

2004-09-14 Thread Christopher Faylor
On Tue, Sep 14, 2004 at 10:33:43AM +0200, Reini Urban wrote: >Larry Hall schrieb: >>At 05:01 PM 9/13/2004, you wrote: >> >>>If i compress a dir in the home directory using WinXP native compressing, >>>will it work with cygwin??? >> >> >>Yes. Compression is taken care of by Windows at a very low le

Re: WinXP compressed dirs will work?

2004-09-14 Thread Reini Urban
Larry Hall schrieb: At 05:01 PM 9/13/2004, you wrote: If i compress a dir in the home directory using WinXP native compressing, will it work with cygwin??? Yes. Compression is taken care of by Windows at a very low level. Cygwin is a layer over Windows. Cygwin will never know the difference. B

Re: WinXP compressed dirs will work?

2004-09-13 Thread Larry Hall
At 05:01 PM 9/13/2004, you wrote: >If i compress a dir in the home directory using WinXP native compressing, >will it work with cygwin??? Yes. Compression is taken care of by Windows at a very low level. Cygwin is a layer over Windows. Cygwin will never know the difference. -- Larry Hall

WinXP compressed dirs will work?

2004-09-13 Thread electa
If i compress a dir in the home directory using WinXP native compressing, will it work with cygwin??? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ:

Re: Anomaly during update by Setup.exe (re-post with compressed attachment)

2003-02-10 Thread Christopher Faylor
On Mon, Feb 10, 2003 at 12:03:48PM +0100, Ronald Landheer-Cieslak wrote: >Hello all, > >During the daily update this morning, I saw a slight anomaly while running >Setup. I've attached the setup log. It's a known problem, reported multiple times previously. cgf -- Unsubscribe info: http://c

Anomaly during update by Setup.exe (re-post with compressed attachment)

2003-02-10 Thread Ronald Landheer-Cieslak
cygwin-apps, I apologize (but I haven't seen it arrive there either, so I don't think it'll be the case) setup.log.full.gz Description: Compressed setup log -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.ht

Compressed

2002-04-12 Thread Pierre . Humblet
<>