X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 27 Mar 2008 14:02:17 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Bug in mv (coreutils 6.10) Message-ID: <20080327130217.GC4468@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20080326165642 DOT GA29317 AT nuthaus DOT mib DOT org> <47EAFCF1 DOT 90707 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47EAFCF1.90707@byu.net> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Mar 26 19:48, Eric Blake wrote: > $ mkdir example > $ cd example > $ touch foo > $ strace mv foo bar/. 2>&1 |grep rename > ~ 450 103717 [main] mv 2476 rename: 0 = rename > (c:\cygwin\tmp\example\foo, c:\cygwin\tmp\example\bar\) > > That rename should have failed with ENOENT. That was fixed in CVS for some rtime, but it failed with EINVAL erroneously. I changed rename to fail with the same error codes as Linux in case one of the arguments has a trailing /. component. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/