delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/27/09:32:58

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 <corinna-cygwin AT cygwin DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019