Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1692 MSYS stat incorrectly identifies a directory as a hard link.

MSYS
open
Cesar Strauss
None
Bug
none
Known_bugs
False
2014-08-22
2013-01-17
Earnie Boyd
No

I was copying files from one drive directory to another drive and experienced issues where cp believed a directory was a hard link to some miscellaneous directory. Issuing the cp command for the failing directory resolved problems but there were many. The command and errors follow:

cp -a /e/p/mingw.org-wsl /c/p/

cp: cannot stat /e/p/mingw.org-wsl/src/cvs2git/cvs2svn-trunk/test-data/main-cvsrepos/single-files/single-double-quote?,v': No such file or directory cp: cannot stat/e/p/mingw.org-wsl/src/cvs2git/cvs2svn-trunk/test-data/main-cvsrepos/single-files/?double-double-quotes?,v': No such file or directory
cp: will not create hard link /c/p/mingw.org-wsl/src/cvs2git/cvscopy/done/msys/rt/src/winsup/msys/include/arpa/Attic' to directory/c/p/mingw.org-wsl/src/build/mingw.org-wsl/4.0-dev/dist/mingwrt/installed/mingwrt-4.0-1-mingw32-src/tests/headers'
cp: will not create hard link /c/p/mingw.org-wsl/src/cvs2git/cvscopy/done/msys/rt/src/winsup/msys/include/sys' to directory/c/p/mingw.org-wsl/src/build/mingw.org-wsl/4.0-dev/dist/mingwrt/installed/mingwrt-4.0-1-mingw32-src/src/libws2_32'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/logs/refs/heads' to directory/c/p/mingw.org-wsl/msys/share/bison/xslt'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/1a' to directory/c/p/mingw.org-wsl/msys/share/doc'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/1b' to directory/c/p/mingw.org-wsl/msys/share/locale/nl'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/2d' to directory/c/p/mingw.org-wsl/msys/sbin'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/6d' to directory/c/p/mingw.org-wsl/msys/share/locale/es/LC_MESSAGES'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/70' to directory/c/p/mingw.org-wsl/msys/share/locale'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/7b' to directory/c/p/mingw.org-wsl/msys/share/locale/de/LC_MESSAGES'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/bd' to directory/c/p/mingw.org-wsl/msys/share/misc'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/d8' to directory/c/p/mingw.org-wsl/msys/share/locale/eo'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/e7' to directory/c/p/mingw.org-wsl/msys/share/awk'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/f4' to directory/c/p/mingw.org-wsl/msys/share/man/man1'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/refs/remotes/origin' to directory/c/p/mingw.org-wsl/msys/share/locale/nb'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/build-aux/.git/hooks' to directory/c/p/mingw.org-wsl/msys/share/locale/ast/LC_MESSAGES'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/build-aux/.git/logs' to directory/c/p/mingw.org-wsl/msys/share/locale/it'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/build-aux/.git/objects' to directory/c/p/mingw.org-wsl/msys/share/locale/fr'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/build-aux/.git/refs/remotes/origin' to directory/c/p/mingw.org-wsl/msys/share/locale/id'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-tools/build-aux/m4' to directory/c/p/mingw.org-wsl/msys/share/locale/lt/LC_MESSAGES'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/11' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/a5'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/12' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/autom4te.cache'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/2c' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/39' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/.git/objects/01'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/3c' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/widl/port'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/4e' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/4.0-dev/.git/objects/65' to directory/c/p/mingw.org-wsl/src/src/mingw.org-tools/doc/genidl'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/master/lib/lib32/ddk' to directory/c/p/mingw.org-wsl/msys/share/aclocal-1.11'
cp: will not create hard link /c/p/mingw.org-wsl/src/src/mingw.org-wsl/master/misc' to directory/c/p/mingw.org-wsl/msys/share/doc/automake/1.11.1'

Discussion

  • Earnie Boyd
    Earnie Boyd
    2013-01-17

    • category: --> Known_bugs
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-11

    • labels: MSYS -->
    • milestone: Known_bugs --> MSYS
    • type: --> Bug
    • resolution: --> none
    • patch_attached: --> False
     
  • Hi Earnie,

    Since this is tagged as "known bug", could we get a link to a duplicate bug? Also, an explanation of the underlying issue would be helpful.

    Thanks