This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Problem with cp and dangling symbolic link
- From: "Kenneth Chalmers" <kenneth dot chalmers at norscan dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 26 May 2005 15:17:09 -0500
- Subject: Problem with cp and dangling symbolic link
I've found what looks like it might be a bug in the cygwin
implementation of symbolic links. It's a pretty obscure one, but I just
got bitten by it so it can happen :) Here's a breakdown:
1. Create a dangling symbolic link:
ln -s filename_that_doesnt_exist test
2. Copy the link, preserving its link status:
cp -d test test2
3. Try to copy the link AGAIN, even with the force flag:
cp -df test test2
On a Linux box, step 3 succeeds, no problem. In cygwin, I get an error:
"cp: cannot create symbolic link `test2': File exists."
Not sure if it's something to worry/care about, but I just thought I'd
throw it out for consideration.
-Ken
--
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/