delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
From: | "Ross Boulet" <ross AT rossb DOT com> |
To: | "Cygwin" <cygwin AT cygwin DOT com> |
Subject: | RE: cp.exe bug |
Date: | Sun, 14 Mar 2004 04:36:42 -0600 |
Message-ID: | <001b01c409b0$4717c250$6400000a@RossLap> |
MIME-Version: | 1.0 |
In-Reply-To: | <005401c408f2$a0fe3a60$2cb80544@cx272325b> |
X-IsSubscribed: | yes |
> Problem: > fileutils version 4.1-2, specifically: cp.exe does not work properly. > > System Info: > Windows 2000, Cygwin DLL version 1.5.7 > > Reproducing from prompt: > prompt> cp some_file ./bin/ > > Output: > cp: `some_file' and `./bin/some_file' are the same file > > > Reproducing from within Makefile: > cp ./some_dir/some_file ./bin/; > > Make output: > cp: `./some_dir/some_file' and `./bin/some_file' are the same file > make: *** [install] Error 1 > > > Workaround: > Reinstall fileutils 4.1-1 > WFM under XP with fileutils 4.1-2 and any one of cygwin dll 1.5.7 and the last two snapshots (20040306 and 20040312). I can re-create the error if I create a hard link in ./bin as shown in the second example below: $ echo aaa >foo $ mkdir bar $ cp foo ./bar/ The above works fine, but the following fails with your same error: $ echo aaa >foo2 $ mkdir bar2 $ ln foo2 ./bar2/foo2 $ cp foo2 ./bar2/ cp: `foo2' and `./bar2/foo2' are the same file You might check to ensure there is not a link in ./bin pointing to the same file in the parent directory. Ross -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |