delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/02/04:58:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Vincent Rowley <vrowley AT pleora DOT com>
Subject: Re: cp (coreutils) 5.2.1 Corrupts Binary File
Date: Wed, 2 Mar 2005 09:53:21 +0000 (UTC)
Lines: 60
Message-ID: <loom.20050302T104906-403@post.gmane.org>
References: <200503020847 DOT j228lR6v007623 AT mail4 DOT magma DOT ca> <20050302085754 DOT GA28084 AT cygbert DOT vinschen DOT de> <loom DOT 20050302T100414-499 AT post DOT gmane DOT org> <20050302094752 DOT GL18314 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT 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 AT m DOT gmane DOT org
X-MailScanner-To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

> 
> On Mar  2 09:11, Vincent Rowley wrote:
> > Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > > On Mar  2 03:52, Vincent Rowley wrote:
> > > > 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
> > > 
> > > 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?
> > 
> > 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
> 
> Can you please check the files using cmp?
> 


Here is the result:

peugeot[/cygdrive/c/WINDOWS/system32]> which cmp
/usr/bin/cmp
peugeot[/cygdrive/c/WINDOWS/system32]> cmp notepad.exe notepad_copy.exe
notepad.exe notepad_copy.exe differ: char 119, line 1


> > 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)?
> 
> You're using textmode mounts (I'd never do this voluntarily but YMMV).
> As I wrote in my first reply, I tested to copy between all combinations
> of binmode mounts and textmode mounts and the copy was in all cases
> identical to the original.


I'm actually not the only one at my company having this issue. Three of us are 
in the same situation. All of us have installed Cygwin the same way though...


> 
> > Have you found anything suspect in my cygcheck log?
> 
> No, unfortunately not.
> 
> Corinna
> 



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019