delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/29/08:21:24

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
Date: Fri, 29 Apr 2005 14:15:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Removal of hard links with count > 1 for files that are in use
Message-ID: <20050429121507.GX2572@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <7387-2005-0429-145620-15796 AT fep34 DOT kolumbus DOT fi> <004201c54cb3$3b9b2f10$2d00000a AT wsmap>
Mime-Version: 1.0
In-Reply-To: <004201c54cb3$3b9b2f10$2d00000a@wsmap>
User-Agent: Mutt/1.4.2i

On Apr 29 15:01, Marcus Picasso wrote:
> $ ln /bin/rm.exe ./foo.exe
> 
> $ /bin/rm.exe -f ./foo.exe
> rm: cannot remove `foo.exe': Permission denied
> 
> Is this expected behaviour? 

I was surprised, too, but the answer is "apparently yes".  Trying to
remove the hardlink results in an ERROR_ACCESS_DENIED from the Win32
calls.  Go figure.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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