delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/02/15:39:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <aba0e6771001020847s564d3373o2b775ea8f7e3be9b@mail.gmail.com>
References: <aba0e6771001020847s564d3373o2b775ea8f7e3be9b AT mail DOT gmail DOT com>
Date: Sat, 2 Jan 2010 20:39:34 +0000
Message-ID: <416096c61001021239g71e06c43h1c73ea661d0e99e@mail.gmail.com>
Subject: Re: Symbolic links problem with cygwin 1.7.1 in 64-bit Win7 Command Prompt
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Lee Rothstein:
>> Will Windows junctions (for the path; plus the file name) work, here?

Don't think so, afaik junction points (introduced in Win2000, and
different from Vista/7 symlinks) work correctly for directories only.

Hard links, however, should work just fine for the problem at hand.


tuli tanssi:
> Actually, in Windows 7, Microsoft has implemented true symbolic links
> (as far as I know).
> Maybe it is also in Vista?
> Anyway, is that (microsoft's true symlinks) feature used in cygwin 1.7?
> Apparently not, since it would solve my problem.

Quoting Corinna Vinschen at
http://sourceware.org/ml/cygwin/2009-11/msg00202.html:

"Cygwin 1.7 does recognize reparse points and especially
the new NTFS6 symlinks.  However, it only reads them, never writes them,
for the reasons repeated by cgf and me a couple of times.  You just
can't use them to store POSIX paths *and* allowing interoperability with
native Win32 processes, plus the nonsense of coupling them with a user
right, plus the super-nonsense only to allow Admins to create them by
default.  All that together makes them worse than Windows shortcuts and
they have not the faintest advantage over Cygwin-only symlinks
implemented as files with the SYSTEM DOS attribute set."

You could create a Windows symbolic link using the Windows 'mklink'
tool though, and it should work both in cmd.exe and in Cygwin.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019