X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 6 Apr 2010 10:28:51 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7 setup.exe overwrites softlink for home Message-ID: <20100406082851.GQ18530@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4BB90AE8 DOT 6020804 AT whack DOT org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BB90AE8.6020804@whack.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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. > 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. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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