X-Spam-Check-By: sourceware.org
Message-ID: <43E45697.1060407@cwilson.fastmail.fm>
Date: Sat, 04 Feb 2006 02:24:07 -0500
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cvs is broken/cygwin-bug in mkdir()?
References: <ds158s$vfk$1@sea.gmane.org> <Pine.GSO.4.63.0602032230020.3425@access1.cims.nyu.edu>
In-Reply-To: <Pine.GSO.4.63.0602032230020.3425@access1.cims.nyu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

