Alexei Lioubimov writes: > > My platform is: > - Win32/CygWin(cygwin1.dll v1.3.6-6) > - CVSROOT=:local:/cygdrive/c/usr/local/CVS > > Any suggestions?
Report it as a cygwin bug: opendir() on a non-existent file should return with errno set to ENOENT, not ENOTDIR. In the meantime, you can try the following patch to CVS: Index: lib/system.h =================================================================== RCS file: /cvs/ccvs/lib/system.h,v retrieving revision 1.42 diff -u -r1.42 system.h --- lib/system.h 15 Feb 2001 02:53:07 -0000 1.42 +++ lib/system.h 3 Jan 2002 19:23:56 -0000 @@ -278,7 +278,11 @@ # define existence_error(x) \ ((x) == ENOENT || (x) == EINVAL || (x) == EVMSERR) # else -# define existence_error(x) ((x) == ENOENT) +# ifdef __CYGWIN32__ +# define existence_error(x) (((x) == ENOENT) || ((x) == ENOTDIR)) +# else +# define existence_error(x) ((x) == ENOENT) +# endif # endif #endif -Larry Jones Somebody's always running my life. I never get to do what I want to do. -- Calvin _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
