This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
rmdir() sets errno = ENOTDIR when dir/file doesn't exist?
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Subject: rmdir() sets errno = ENOTDIR when dir/file doesn't exist?
- From: "Mark Paulus" <commpg at yahoo dot com>
- Date: Tue, 28 Aug 2001 14:14:08 -0600
- Reply-To: "Mark Paulus" <commpg at yahoo dot com>
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/