[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: poor mv error message

From: The Wanderer
Subject: Re: poor mv error message
Date: Fri, 03 Aug 2007 17:14:36 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922

Eric Blake wrote:

We probably ought to make this error message smarter:

$ mkdir a
$ mv a/. b
mv: cannot move `a/.' to a subdirectory of itself, `b'

Perhaps interestingly, with coreutils 5.97 (still the latest in Debian),
I get a different message:

$ mkdir a
$ mv a/. b
mv: cannot move `a/.' to `b': Device or resource busy

(For the record, 'b' does not exist, and this same behaviour has
occurred in multiple locations on different devices.)

An strace reveals nothing I can interpret beyond the fact that, as is
perhaps obvious, rename(2) is returning EBUSY.

For all I know, there may be known reasons why this would not be all
that surprising, but it's different enough that I felt it worth
commenting on.

      The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]