cvs is broken/cygwin-bug in mkdir()?

Charles Wilson cygwin@cwilson.fastmail.fm
Sat Feb 4 14:28:00 GMT 2006


Igor Peshansky wrote:
> On Sat, 4 Feb 2006, Sven Köhler wrote:
> 
>> i'm trying to use cygwin's cvs in server-mode for another application
>> I get the following error, but on a linux-system, everything is fine!
>>
>>   E cannot mkdir /tmp/cvs-serv784/.
>>   error  No such file or directory
> 
> As Brian said, this was already reported.  The ball is now in the CVS
> maintainer's court: <http://cygwin.com/ml/cygwin/2006-01/msg01383.html>.
> 
> That's exactly right (see line 1002 of server.c).
> 
>> Is this a bug in cygwin?
> 
> Yes.  

I think I'd rather not add a hackish workaround in server.c (ignore the 
obvious bug in the dreck below)

     if (status != 0
-        && status != EEXIST
+        && (status != EEXIST)
+#ifdef __CYGWIN__
+        && ((status != ENOENT) && (dir[strlen(dir)-2] == '/') && 
(dir(strlen(dir)-1] == '.'))
+#endif
+        )
       ....signal error...

and just say "use a snapshot cygwin1.dll, or update to 1.5.20 when it is 
released".

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list