Date: Mon, 15 Feb 1999 01:00:39 +0100 From: Ollivier Robert <roberto@keltia.freenix.fr> To: freebsd-hackers@FreeBSD.ORG Subject: Re: install -C Message-ID: <19990215010039.A7717@keltia.freenix.fr> In-Reply-To: <86u2wpc0iy.fsf@niobe.ewox.org>; from Dag-Erling Smorgrav on Sun, Feb 14, 1999 at 01:05:41AM %2B0100 References: <86u2wpc0iy.fsf@niobe.ewox.org>
next in thread | previous in thread | raw e-mail | index | archive | help
According to Dag-Erling Smorgrav: > I can understand the reason for the first two (avoid needlessly > breaking dependencies), but not for the last three. In any case, I > think it would be better if we always used whatever the admin has set > INSTALL to in /etc/make.conf, and make "install -C" the default. I think it avoid some race conditions that could be deadly. Bruce sent a message about this a while ago. Without '-C', install will truncate the target file before writing; now imagine the copy fails for some reason, you're hosed big time. With '-C', it is copied under another name, the target is unlinked then the file is renamed. You're safe. > My main argument against always installing certain files with "install > -C" is that makes it very difficult to clean up after a major upgrade, > since you can't rely on "live" files to have a recent timestamp. I've > talked to people on IRC who deleted their Elf interpreter because its > mtime predated their last make world. Shooting yourself in the foot The a.out loader used to be protected, why not doing it for ld-elf.so too ? -r-xr-xr-x 1 root wheel - 62872 Jan 18 00:01 /usr/libexec/ld-elf.so.1* -r-xr-xr-x 1 root wheel schg 77824 Dec 29 20:14 /usr/libexec/ld.so* ^^^^ -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #69: Mon Jan 18 02:02:12 CET 1999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990215010039.A7717>