delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/28/16:14:33

Message-Id: <200108282014.QAA22141@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Paulus" <commpg AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Tue, 28 Aug 2001 14:14:08 -0600
Reply-To: "Mark Paulus" <commpg AT yahoo DOT com>
X-Mailer: PMMail 2000 Professional (2.20.2350) For Windows 2000 (5.0.2195;2)
MIME-Version: 1.0
Subject: rmdir() sets errno = ENOTDIR when dir/file doesn't exist?

Hi,

I have a question about the behaviour of rmdir 
(winsup/cygwin/dir.cc).  According to the 
man 2 rmdir, (and a little empirical test on a linux
box), when rmdir() is called with a filename that doesn't
exist, errno is set to 2 / ENOENT.  
However, within CYGWIN, errno is set to ENOTDIR,
which is slightlly different (If we want to remove the 
object, and it doesn't exist, then we are done, right....)


If this behaviour that I have mentioned is incorrect, let me
know, and I will provide a patch....





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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