Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 29 Apr 2005 14:15:07 +0200 From: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/