delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/12/03:49:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 12 Mar 2008 09:48:46 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin and Vista symlinks using mklink problem
Message-ID: <20080312084846.GM18407@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <C8AB7E937E88451CA95B9939088C9DFC AT PaulCarewCRC>
MIME-Version: 1.0
In-Reply-To: <C8AB7E937E88451CA95B9939088C9DFC@PaulCarewCRC>
User-Agent: Mutt/1.5.16 (2007-06-09)
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

On Mar 11 22:12, Paul Carew wrote:
> Beware!!
> I have noticed that Cygwin and the new Vista command 'mklink' do not 
> co-exist very happily.
> If you create a Vista symlink using mklink and then try to  delete/remove 
> it using 'rm', the target is deleted and not the symlink!

Cygwin 1.5.25 does not recognize the new native NTFS symlinks as
symlinks.  For a Cygwin process, the native symlink is a normal file and
opened and handled like a normal file.  The fact that unlink removes the
target of the symlink instead of the symlink is an unfortunate Window'ism.

The next major version of Cygwin will recognize native NTFS symlinks as
symlinks, so that won't happen anymore.  However, Cygwin will not
utilize NTFS symlinks for its own symlinks, because the native symlink
functionality has two serious flaws:

- By default, only administrators have the right to create native
  symlinks.  Admins running with restricted permissions under UAC don't
  have this right.

- When creating a native symlink, you have to define if this symlink
  points to a file or a directory.  This makes no sense given that
  symlinks often are created before the target they point to.

These issues make native symlinks almost unusable from a POSIX
perspective. 


Corinna

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

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

- Raw text -


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