Add support for creating native windows symlinks

Corinna Vinschen
Mon Dec 5 10:20:00 GMT 2011

On Dec  4 13:07, Russell Davis wrote:
> Hi Andy, thanks for the response.
> > - Native links can't point to special Cygwin paths such as /proc and
> > /dev, although I guess that could be fudged.
> They can, they just won't work when non-cygwin apps try to use them
> (perhaps what you're eluding to with the fudging). This is no worse
> than the status quo with cygwin's non-native symlinks -- non-cygwin
> apps can't follow those either. Verified as working with the original
> patch.
> > - If the meaning of the POSIX path changes due to Cygwin mount point
> > changes, native symlinks won't reflect that and point to the wrong
> > thing.
> Good point, but surely this must already be the case with
> shortcut-style symlinks (via CYGWIN=winsymlinks) as well?

No.  The Cygwin shortcut-style symlinks contain the POSIX path as well
and Cygwin only utilizes the POSIX path.  See symlink_info::check_shortcut.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-patches mailing list