This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fun with symlinks?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]