delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/26/16:02:12

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: <199910262001.OAA09520@benson>
Subject: cygwin's unlink
To: cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 26 Oct 1999 14:01:10 -0600 (MDT)
X-Mailer: ELM [version 2.4 PL25]

	I'm having a strange problem in the unlink library
	call for cygwin.  We have a routine which removes
	directories recursively.  To make this routine safer,
	we use first try to unlink the directory, just in case
	the directory is a symbolic link (this routine is not supposed
	to follow symbolic links).  In the case it's a symbolic link,
	it removes the link, and the routine returns success.

	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?

					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