Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Vincent Rowley <vrowley@pleora.com>
Subject: Re: cp (coreutils) 5.2.1 Corrupts Binary File
Date: Wed, 2 Mar 2005 09:11:06 +0000 (UTC)
Lines: 43
Message-ID: <loom.20050302T100414-499@post.gmane.org>
References: <200503020847.j228lR6v007623@mail4.magma.ca> <20050302085754.GA28084@cygbert.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 66.48.168.179 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322))
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner: Found to be clean
X-MailScanner-From: goc-cygwin@m.gmane.org
X-MailScanner-To: cygwin@cygwin.com
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> 
> On Mar  2 03:52, Vincent Rowley wrote:
> > Hi,
> > 
> > We found that cp corrupts binary files which is quite embarrassing...
> > 
> > peugeot[/cygdrive/c/WINDOWS/system32]> cp notepad.exe notepad_copy.exe
> > peugeot[/cygdrive/c/WINDOWS/system32]> diff notepad.exe notepad_copy.exe
> > Files notepad.exe and notepad_copy.exe differ
> > 
> > Please find attached the output of cygcheck -s -v -r .
> > 
> > Is anyone had this issue? Is there any workaround?
> 
> I just tried it on binmode and textmode mounts and in all combinations
> from binmode to textmoe and vice versa.  In no case I could reproduce
> your above observation.
> 
> Are you sure you ran Cygwin's cp and diff?
> 
> Corinna
> 

Hi Corinna,

Yes I am. And I did it again using the full path to the executable 
(c:/apps/cygwin being my Cygwin installation directory).

peugeot[/cygdrive/c/WINDOWS/system32]> c:/apps/cygwin/bin/cp notepad.exe 
notepad_copy.exe
peugeot[/cygdrive/c/WINDOWS/system32]> c:/apps/cygwin/bin/diff notepad.exe 
notepad_copy.exe
Files notepad.exe and notepad_copy.exe differ

Do you think it has to do with the fact that I installed Cygwin to use files 
in DOS mode (in one of the first tab of the Setup.exe application)?

Have you found anything suspect in my cygcheck log?

Vincent



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

