X-Spam-Check-By: sourceware.org Message-ID: <43E42C13.2090104@upb.de> Date: Sat, 04 Feb 2006 05:22:43 +0100 From: =?ISO-8859-1?Q?Sven_K=F6hler?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com CC: corinna-cygwin AT cygwin DOT com Subject: Re: Problems with cygwin cvs over ssh. References: <20060128085200 DOT GB15572 AT calimero DOT vinschen DOT de> In-Reply-To: <20060128085200.GB15572@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com >> Right. I missed the "." in the original message. The change that >> prompted this behavior seems to be >> . I'm assuming the >> motivation for this patch was to duplicate Linux's behavior (which doesn't >> allow trailing "." in a path passed to mkdir). > > Indeed. Eric mentioned that the coreutils testsuite tests thsi behaviour > explicitely. Since there's not much impact speedwise, we just added > appropriate checks to be POIX compatible here. I want to state, that cygwin might return the wrong error-code! Instead of "file already exists" it returns "no such file or directory". Cygwin's bahaviour: $ mkdir /tmp/. mkdir: cannot create directory `/tmp/.': No such file or directory Linux' behaviour: # mkdir /tmp/. mkdir: cannot create directory `/tmp/.': File exists Indeed, strace shows me, that on Linux mkdir() returns EEXIST in the case of a mkdir("/tmp/.")-call. Cygwin doesn't seem to do it this way, it seems to return ENOENT which would not be Linux-like ;-) Unfortunatly i don't understand the output of cygwin's strace and cannot check, what the mkdir("/tmp/.") returns there. Does anybody have a clue? Sven -- 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/