This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
Friday, 04 January, 2002 Christopher Faylor email@example.com wrote:
CF> On Fri, Jan 04, 2002 at 09:59:31PM +0300, egor duda wrote:
>>Friday, 04 January, 2002 Alexei Lioubimov firstname.lastname@example.org wrote:
>>AL> cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
>>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.
>> 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?
CF> I just checked in a fix for this. Are you using the latest CVS?
argh, probably not. it looks like the problem was introduced with
fhandler_cygdrive thingie, and i was using earlier dll. sorry for
CF> I already had a test case sitting around for this so it probably is a
CF> regression and I probably should add something to the test suite.
would be nice. i'll try to dig out a testcase (i vaguely remember i
had one that needed some tweaking) and add it to testsuite.
Egor. mailto:email@example.com ICQ 5165414 FidoNet 2:5020/496.19
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html