delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/06/16:44:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=BAYES_00,TW_LR,TW_RW,TW_WX,TW_XR,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4BBB9D08.3090403@whack.org>
Date: Tue, 06 Apr 2010 13:43:52 -0700
From: Peter Wohlers <pedro AT whack DOT org>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7 setup.exe overwrites softlink for home
References: <1270563217 DOT 20907 DOT ezmlm AT cygwin DOT com>
In-Reply-To: <1270563217.20907.ezmlm@cygwin.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

>
> From:
> Corinna Vinschen
> Date:
> Tue, 6 Apr 2010 10:28:51 +0200
>
>
> On Apr  4 14:55, Peter Wohlers wrote:
>> Since upgrading to 1.7, I keep seeing weird problems with deletion
>> of my homedir symlink.
>>
>> Before running setup:
>> pwohlers AT h1n1 ~
>> $ ll /
>> [...]
>> lrwxrwxrwx   1 Domain Users     18 2010-04-04 14:31 home ->
>> /cygdrive/d/Users/
>> [...]
>> After running setup:
>> [...]
>> Setup seems to have deleted the softlink for /home
>
> Well... yes.  That's probably a bit unfortunate.  The current mechanism
> always creates a couple of directories if they don't already exist:
>
>   /bin
>   /home
>   /etc
>   /lib
>   /tmp
>   /usr
>   /usr/bin
>   /usr/lib
>   /usr/src
>   /usr/local
>   /usr/local/bin
>   /usr/local/etc
>   /usr/local/lib
>   /usr/tmp
>   /var/log
>   /var/run
>   /var/tmp
>
> If the directory couldn't be created because a non-directory file uses
> the same name, it deletes that file and tries to create the directory
> again.  It's not perfect, but at least we know that the directories
> exist, afterwards.  We could add a mode which drops the aggressive
> creation strategy, but I only see that *could* make sense for home.
>
OK. Just curious as this seems to be a departure from previous versions' 
behaviors, so I wasn't sure if this was something new to 1.7, or merely 
pilot-error.

>> Is there something magical about the /home symlink that now needs to
>> be handled with fstab?  Or is it something else?
>
> Nothing "magic", it's just the current state of affairs.  Creating a
> /home mount point is certainly a good workaround, and it should even be
> a bit faster than a symlink.
>
>
Thanks for validation of workaround.

Gratefully,

Peter Wohlers


--
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