delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/03/10:47:23

X-Spam-Check-By: sourceware.org
Date: Fri, 3 Feb 2006 16:47:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.19+: symlink bug
Message-ID: <20060203154711.GF15572@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <020320061506 DOT 16175 DOT 43E371890007264300003F2F22073007930A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <020320061506.16175.43E371890007264300003F2F22073007930A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Feb  3 15:06, Eric Blake wrote:
> > > Creating links with the same name, but with and without a .exe extension
> > > succeeds, but the one with no extension is later ignored.  Here's a
> > > minimal example:
> > > 
> > Did you try this with the latest coreutils 5.93-3?
> 
> I just reproduced with stock cygwin 1.5.19 and coreutils 5.93-3.  The
> behavior is the same, and it is cygwin doing it.  It appears that when
> both TESTLINK.lnk and TESTLINK.exe.lnk exist, lstat("TESTLINK")
> is picking up the contents of TESTLINK.exe.lnk rather than the
> contents of TESTLINK.lnk.

I have prepared a patch which eliminates this problem, and I'll apply it
soon, but nevertheless, I'm not exaclty happy with coreutils symlink
handling.  If a TESTLINK exist, it shouldn't allow to create a
TESTLINK.exe symlink, really.  I know that this should actually be
handled in Cygwin, and I have a patch in the backyard which adds
transparent .exe handling to Cygwin, but this is a big behavioral change
and we must proceed carefully with that.


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