delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/01/18:56:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B3E8B96.4020109@tlinx.org>
Date: Fri, 01 Jan 2010 15:56:06 -0800
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 ThunderBrowse/3.2.6.8 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: find utils (updatedb) crashes on invalid win symlink
X-Stationery: 0.4.10
X-IsSubscribed: yes
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

Some time ago, my daily updatedb stopped working and I just got 
around to figuring out why -- it was dying with (I wish I had the message,
but I lost it) an internal error in 'find' which would then exit and
updatedb would overwrite the old file with a new empty file. 

But the place where it died was where, in the root dir, I had a symlinkD
pointing to a no-longer existing drive.

Used to have a network drive L:, in order for updatedb to index it (reliably), I 
created a windows symlink to it in root:  "l <==> L:".  Later the network drive
was no longer needed at L and was removed, but the symlink was left behind.

find really didn't like that dangling symlink.  Removed it (using windows, as
cygwin doesn't seem able to remove symlinkD's).  I think that thought
cygwin understands windows symlinks as symlinks, it doesn't 'grok' the 'symlinkD'
type links to directories (that explorer 'needs' to see them as a directory).

I'm not sure, but I think symlinkD's are real directories with a file in them
that points to the target.

-linda

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