1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
egor duda
deo@logos-m.ru
Fri Jan 4 11:02:00 GMT 2002
Hi!
Friday, 04 January, 2002 Alexei Lioubimov alexeipobox@mtu-net.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. mailto:deo@logos-m.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/
More information about the Cygwin
mailing list