#1911 Preservation of Symbolic links on >Vista+NTFS

MSYS
open
Cesar Strauss
duplicate? (8)
Feature
none
Unknown
False
2013-02-15
2012-03-09
Adam Stark
No

Other projects have reported related problems: (e.g., http://code.google.com/p/msysgit/issues/detail?id=224\)

ls -la will list:
...
drwxr-xr-x 9 adam Administrators 0 Feb 9 12:34 Goodwill Rancho
drwxr-xr-x 7 adam Administrators 0 Jan 3 10:25 Goodwill Yuba
...

While cmd.exe /C dir lists:
...
03/08/2012 08:53 AM <SYMLINKD> Goodwill Rancho [V:\12019]
03/08/2012 08:55 AM <SYMLINKD> Goodwill Yuba [V:\12032]
...

in the same vein ln -s will copy instead of creating a symbolic link. It would be nice if msys coreutils could detect NTFS symbolic links and create them when appropriate.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2012-03-09

    This may be a duplicate request. I know we've at least briefly discussed it in the lists to use the windows functions as available to emulate symbolic links.

     
  • Earnie Boyd
    Earnie Boyd
    2012-03-09

    • labels: 380073 --> MSYS
    • milestone: 102881 -->
    • assigned_to: nobody --> cstrauss
     
  • Cesar Strauss
    Cesar Strauss
    2012-03-14

    > https://sourceforge.net/tracker/?func=detail&aid=3046195&group_id=2435&atid=302435
    > That's a fairly old ticket; it seems to have stagnated. Cesar, have you
    > any plans to progress this further?

    The patch in that ticket covers only symbolic link creation (ln -s). At the time, I suggested extending the work to include recognition of symbolic links (ls -la), but the contributor seems to have run out of spare time (as did I).

    I'm now convinced that it's worthwhile to integrate the work done in that ticket so far. At least it is an improvement over what we have now.

     
  • Michael Gooch
    Michael Gooch
    2012-08-26

    At the very least, you could have it push a system command through cmd /c as the following tools exist on widows 7+

    MKLINK [[/D] | [/H] | [/J]] Link Target

    /D Creates a directory symbolic link. Default is a file
    symbolic link.
    /H Creates a hard link instead of a symbolic link.
    /J Creates a Directory Junction.
    Link specifies the new symbolic link name.
    Target specifies the path (relative or absolute) that the new link
    refers to.

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-15

    Ticket moved from /p/mingw/feature-requests/104/

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-15

    • labels: MSYS --> duplicate?
    • milestone: --> MSYS
    • type: --> Feature
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> False