delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/14/14:12:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3B001DD1.7CDDF361@yahoo.com>
Date: Mon, 14 May 2001 14:02:57 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Cygwin Users <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem with cp'ing executables
References: <yz1d79cavjn DOT fsf AT milhouse DOT cs DOT cornell DOT edu> <20010514125855 DOT A8574 AT redhat DOT com> <3B0014E3 DOT 4DC3CFC2 AT yahoo DOT com> <20010514133111 DOT A9139 AT redhat DOT com>

Christopher Faylor wrote:
> 
> On Mon, May 14, 2001 at 01:24:51PM -0400, Earnie Boyd wrote:
> >Christopher Faylor wrote:
> >>
> >> On Mon, May 14, 2001 at 09:51:08AM -0400, Paul Stodghill wrote:
> >> >I see a strange bug when trying to copy an executable from one directory to
> >> >another.
> >> >
> >> >If the command "cp /dir/exec-name /dir2/exec-name" is used, the copy fails
> >> >with an error message that the two files "are the same file". But,
> >> >"cp /dir/exec-name.exe /dir2/exec-name.exe" works.
> >> >
> >> >I don't believe this was a problem with 1.1.8, but it is a problem with
> >> >1.3.1 and with 5/13 snapshot.
> >>
> >> Instead of "not believing" it would be tremendously helpful if you could
> >> verify that fact.
> >>
> >
> >FWIIW, this issue has always been an issue.  It has to do with stat
> >returning for /foo/bar when the file is actually /foo/bar.exe.
> 
> But the "same file" distinction should be based on inodes, I believe and
> the inodes should be different in this case.
> 
> I would just expect a different error message than "are the same file".
> 

It's probably an incorrect error message from cp or _errno is not
correct.  The fact is /foo/bar doesn't exist to copy when the physical
file name is /foo/bar.exe.

Hmm...  Was there a Cygwin fix to cp.c in previous versions of
fileutils?

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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