delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/25/17:55:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Problem uninstalling/deleting cygwin
Date: Tue, 25 Jan 2005 15:03:58 -0800
Lines: 39
Message-ID: <ct6ine$gvv$1@sea.gmane.org>
References: <1106670496 DOT 10021 DOT 18 DOT camel AT linuxpc DOT lune> <VA DOT 00001110 DOT 00302c25 AT thesoftwaresource DOT com> <1106676434 DOT 10021 DOT 29 DOT camel AT linuxpc DOT lune> <ct6769$aqd$1 AT sea DOT gmane DOT org> <1106683970 DOT 10021 DOT 54 DOT camel AT linuxpc DOT lune> <ct6a2k$kli$1 AT sea DOT gmane DOT org> <1106689937 DOT 10021 DOT 69 DOT camel AT linuxpc DOT lune>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: farscape.lynx.com
User-Agent: Mozilla Thunderbird 1.0 (X11/20041206)
In-Reply-To: <1106689937.10021.69.camel@linuxpc.lune>
X-IsSubscribed: yes

Neven Luetic wrote:

>>> It says: "x cannot be deleted. Access denied. Maybe the source file 
>>> is opened" (maybe this translation from german is bad, but I saw it 
>>> before, so you'll recognize it).
>>
>> Does any process have this file opened? Try using Process Explorer 
>> from SysInternals.com.
>
> Process Explorer doesn't show anything (I looked for the handle 
> "cygwin.old", i.e. the top level dir). 

There are two different types of find in Process Explorer. Are you sure 
you tried both?

> I killed any process that I could
> (including explorer) and stopped AntiVir, Apache and mysql. No change.
>
> Anyway, those stale links cannot be accessed as files at all. I can 
> only see them using "ls" or apply chmod/chown on them. Nothing else. 
> If I try "cat file", it says "No such file or directory". File zombies.

Symbolic links, in Cygwin for Windows, are not very much different than 
regular Windows Shortcuts (OK there are some differences and perhaps 
this is one of them). As such if you created a Windows shortcut to say a 
folder and later removed the folder you would expect, and Windows would 
handle, deleting the shortcut. As such I don't understand what the 
problem is here.

You could:

    * Make the file that the link it pointing to valid then try removing
      the link
    * Try removing the link with Cygwin's rm (you probably did this
      already, included for completeness)
    * Try removing the link with Windows Explorer
    * Try removing the link with DOS' DEL.
    * Try examining the shortcut's properties and security



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019