delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/26/17:10:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Steve Jorgensen <steve AT khoral DOT com>
Message-Id: <199910262109.PAA09624@benson>
Subject: Re: cygwin's unlink
To: cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 26 Oct 1999 15:09:49 -0600 (MDT)
In-Reply-To: <19991026165225.A2485@cygnus.com> from "Chris Faylor" at Oct 26, 99 04:52:25 pm
X-Mailer: ELM [version 2.4 PL25]

Chris Faylor wrote
>> On Tue, Oct 26, 1999 at 02:01:10PM -0600, Steve Jorgensen wrote:
>> >Anyway, in the case where the file is truely a directory, under all
>> >unix systems we've tried, unlink returns and error, and we proceed with
>> >the recursive directory removal, but under cygwin it returns success
>> >(even though nothing is removed), and our code returns success without
>> >removing the directory.  Is this a limitation in the underlying windows
>> >unlink, or a bug in cygwin?
>> 
>> When I try this I get a "Permission denied" error.  It should be a
>> "Is a directory error" though.  I've changed the sources here so
>> this should be fixed in the next snapshot.

	Are you saying this is a bug that has been fixed and will be in
	the next snapshot, because I didn't get the "Permission denied"
	error at all?   In fact, it was the lack of error is what I
	reporting as an error.

	John Hanson suggested it maybe because the directory was open, and
	unlink queues up remove requests until all open file descriptors
	have been closed, and returns success after queueing.  It doesn't
	look like this is the problem though, as I can't find anywhere
	where the directory is opened without being closed again.

					Steve

-- 
-----------------------------------------------------------
Steven Jorgensen      steve AT khoral DOT com	    steve AT haunt DOT com
------------------------------+----------------------------
Khoral Research Inc.          | PHONE: (505) 837-6500
6200 Uptown Blvd, Suite 200   | FAX:   (505) 881-3842
Albuquerque, NM 87110         | URL: http://www.khoral.com/
-----------------------------------------------------------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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