This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cp error -- oh the great sanity of *nix tools?!?


Because Cygwin mounts allow the same directory to be reachable by different
routes, it is not always obvious to the user whether two directories or
files are the same.  I guess the same could be true with symbolic links in
normal UNIXs.

Please confirm what directory make was working in when it tried to copy
those files.  The output from 'mount' is also needed to see if that
directory and /usr/sbin/ are really the same directory.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Randall R Schulz" <rrschulz@cris.com>
To: "Soren Andersen" <soren@wonderstorm.com>; <cygwin@cygwin.com>
Sent: Sunday, June 24, 2001 20:59
Subject: Re: cp error -- oh the great sanity of *nix tools?!?


> Perhaps those two files _were_ the same. Namely, if make's current
> directory was /usr/sbin at time the cp commands were invoked.
>
> I don't believe cp reports that the source and destination files are the
> same unless they are. Surely you would rather it do this than open the
> destination with the create and truncate options and then copy the source
> (now empty) to it?
>
> Same as on any Unix, Linux, BSD, FreeBSD, AIX, HPUX or other Unix
work-alike.
>
> At 19:58 2001-06-24, you wrote:
> >
> >I am running a Makefile installation (`make install') and I keep getting
> >this error (the package is BerkeleyDB, this is irrelevent):
> >
> >./db_checkpoint -> /usr/sbin/db_checkpoint
> >/usr/bin/cp: `./db_checkpoint' and `/usr/sbin/db_checkpoint' are the same
> >file
> >./db_deadlock -> /usr/sbin/db_deadlock
> >/usr/bin/cp: `./db_deadlock' and `/usr/sbin/db_deadlock' are the same
file
> >./db_dump -> /usr/sbin/db_dump
> >/usr/bin/cp: `./db_dump' and `/usr/sbin/db_dump' are the same file
> >./db_load -> /usr/sbin/db_load
> >/usr/bin/cp: `./db_load' and `/usr/sbin/db_load' are the same file
> >./db_printlog -> /usr/sbin/db_printlog
> >/usr/bin/cp: `./db_printlog' and `/usr/sbin/db_printlog' are the same
file
> >./db_recover -> /usr/sbin/db_recover
> >/usr/bin/cp: `./db_recover' and `/usr/sbin/db_recover' are the same file
> >./db_stat -> /usr/sbin/db_stat
> >/usr/bin/cp: `./db_stat' and `/usr/sbin/db_stat' are the same file
> >make: *** [install] Error 1



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]