Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 4 Jan 2002 21:59:31 +0300 From: egor duda X-Mailer: The Bat! (v1.53 RC/4) Reply-To: egor duda Organization: deo X-Priority: 3 (Normal) Message-ID: <15635470338.20020104215931@logos-m.ru> To: "Alexei Lioubimov" CC: cygwin AT cygwin DOT com Subject: Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice... In-Reply-To: <001a01c19551$3163d3c0$4462bcd4@ndg> References: <001a01c19551$3163d3c0$4462bcd4 AT ndg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! 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 #include #include #include 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. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19 -- 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/