autoconf
[Top][All Lists]
Advanced

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

Re: Problematic use of mv(1)


From: Eric Siegerman
Subject: Re: Problematic use of mv(1)
Date: Mon, 13 Aug 2001 14:22:27 -0400
User-agent: Mutt/1.2.5i

On Mon, Aug 13, 2001 at 01:53:03PM +0200, Peter Simons wrote:
> What happens is that the configure script creates these files in /tmp
> and mv(1)s them to the target location -- my home directory in this
> case.
> 
> In general using mv here seems to be dangerous because many older
> systems do not allow mv'ing files from one file system to another one;
> often /tmp is on a different file system than the home directories. In
> this case the configure script would fail entirely.

Cross-filesystem mv's of *files* has always been allowed, ever
since 6th Edition (mid-1970s) at latest.  Moving directories is
another question, but one that doesn't apply here.

>  [On FreeBSD 4.3]:
>  | configure: creating ./config.status
>  | config.status: creating xds.h
>  | mv: xds.h: set owner/group (was: 10003/0): Operation not permitted
>  [...]
> 

Now, these annoying complaints from FreeBSD's mv are also another
question, and may in themselves be reason to move to cp+rm...

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea.
        - RFC 1925 (quoting an unnamed source)



reply via email to

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