This is the mail archive of the cygwin 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]
Other format: [Raw text]

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/


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