Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 29 Aug 2001 10:38:32 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: rmdir() sets errno = ENOTDIR when dir/file doesn't exist? Message-ID: <20010829103832.B3960@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <200108282014 DOT NAA22239 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200108282014.NAA22239@cygnus.com> User-Agent: Mutt/1.3.21i On Tue, Aug 28, 2001 at 02:14:08PM -0600, Mark Paulus wrote: >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.... It's incorrect and I've modified the sources. I do greatly appreciate the offer of a patch, though. Thanks for the bug report. Your specific details enambled me to squash this bug very quickly. cgf -- 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/