Brian Curtin added the comment:
This hasn't been an issue for quite some time, and I suspect the follow-up work
on symbolic and hard links and their supporting functions corrected any
problems in this area.
--
resolution: -> works for me
stage: needs patch -> committed/rejected
statu
Brian Curtin added the comment:
Here is a patch.
os.path.samefile and hard links don't work for Windows the same way they do for
Mac/Linux. In the case where we are on Windows and a link comes into the
_samefile function, check that it's a link and then use os.path.sameopenfile.
If it's not
New submission from Brian Curtin :
My build slave shows a test failure at test_dont_copy_file_onto_link_to_itself.
This happens because the implementation of _samefile in Lib/shutil.py (line 70)
doesn't work for Windows hard links.
Patch on the way.
--
assignee: brian.curtin
component