info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG in "cvs co -r" (CVS 1.11.0)?


From: Larry Jones
Subject: Re: BUG in "cvs co -r" (CVS 1.11.0)?
Date: Thu, 3 Jan 2002 14:25:45 -0500 (EST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]