Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 27 Jun 2002 11:12:54 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Fun with symlinks?
Message-ID: <20020627111254.K22705@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.LNX.4.21.0206261845460.17279-100000@gremlin.fruitbat.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.21.0206261845460.17279-100000@gremlin.fruitbat.org>
User-Agent: Mutt/1.3.22.1i

On Wed, Jun 26, 2002 at 10:17:25PM -0700, Peter A. Castro wrote:
> Fine, so far.  Now, suppose you got a notice that a new Bash was uploaded
> to the cygwin release area.  So, you fire up 'setup' and tell it to
> upgrade Bash.  Now, start Bash.  Notice your changes don't show up anymore.
> Now, do an 'ls -al /etc/pro*'
> 
> -rw-r--r--    1 Administ None          386 May 30 19:08 /etc/profile
> -rw-r--r--    1 Administ None          386 May 30 19:08 /etc/profile
> -rw-r--r--    1 Administ None          386 May 14 23:21 /etc/profile.orig
> -rw-r--r--    1 Administ None          525 May 22 13:06 /etc/profile.pac 
> 
> Notice that there are *two* files named 'profile'.  Now, one has to be a
> real file, and one has to be the symlink.  The access rules seem to favor
> the real file, so the symlink is, apparently, ignored.  But, this

That's a problem of setup.exe which doesn't understand that there's
a symlink of the Windows shortcut type (*.lnk) is in the way.
Setup should actually remove the symlink when creating the real
file.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

