Re: install.c: please set unlink_dest_before_opening=false
From:
Paul Eggert
Subject:
Re: install.c: please set unlink_dest_before_opening=false
Date:
Tue, 20 Feb 2007 15:19:57 -0800
User-agent:
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
"Robert Millan [ackstorm]" <address@hidden> writes:
> I haven't checked POSIX though, but if this is actualy a requirement
> maybe a POSIX_ME_HARDER hack would make sense here?
POSIX makes no requirement. Other implementations are all over the
map here, so I suppose we can do what is more convenient. On Solaris
10, /usr/ucb/install breaks the destination link, and
/usr/sbin/install does not break it. Traditionally, coreutils has
tried to be BSD-compatible, which argues for the current behavior.
Has BSD behavior changed? (I took a quick look at the FreeBSD source
code for what it does, and quickly became bewildered. :-)