[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'install' sets time stamp after changing owner; should do it before?
From: |
Jim Meyering |
Subject: |
Re: 'install' sets time stamp after changing owner; should do it before? |
Date: |
Mon, 04 Dec 2006 10:06:31 +0100 |
Paul Eggert <address@hidden> wrote:
> The 'install' command sets the time stamp on the installed file after
> changing ownership, whereas other coreutils commands (cp, mv) set the
> time stamp before chowning. The other coreutils commands seem right
> to me, if only so that the time stamp is set correctly on hosts that
> let non-root users give away files via chown.
>
> Here's a proposed patch to make them consistent. This patch doesn't
> fix any bugs that I can see on ordinary platforms where non-root users
> can't give away files, but it does make the code a bit more
> consistent.
>
> +2006-12-03 Paul Eggert <address@hidden>
> +
> + * src/install.c (install_file_in_file): Preserve time stamps
> + before changing owner or file mode bits, for consistency with
> + other coreutils programs.
Thanks!
Applied.