delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/04/15:16:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 4 Jan 2002 15:16:32 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
Message-ID: <20020104201632.GA1136@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001a01c19551$3163d3c0$4462bcd4 AT ndg> <15635470338 DOT 20020104215931 AT logos-m DOT ru>
Mime-Version: 1.0
In-Reply-To: <15635470338.20020104215931@logos-m.ru>
User-Agent: Mutt/1.3.23.1i

On Fri, Jan 04, 2002 at 09:59:31PM +0300, egor duda wrote:
>Friday, 04 January, 2002 Alexei Lioubimov alexeipobox AT mtu-net DOT ru wrote:
>AL> cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
>AL> directory
>AL> I send this error to info-cvs mailing list and they said, that it is due to
>AL> opendir() implementation in cygwin (it returns ENOTDIR instead of
>AL> ENOENT in most cases :( ).
>
>this program prints 'errno=2', which is correct ENOENT result.
>
>#include <sys/types.h>
>#include <stdio.h>
>#include <dirent.h>
>#include <errno.h>
>
>int main()
>{
>  DIR* x = opendir ( "/tmp/wazoof" );
>  if (!x)
>    printf ( "errno=%d\n", errno);
>}
>
>AL> Will it be corrected in cygwin or in cygwin port of CVS?
>
>care to provide a simple self-contained testcase?

Egor,
I just checked in a fix for this.  Are you using the latest CVS?

I already had a test case sitting around for this so it probably is a
regression and I probably should add something to the test suite.

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/

- Raw text -


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