From owner-freebsd-hackers Sun Feb 14 19:11:34 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA20615 for freebsd-hackers-outgoing; Sun, 14 Feb 1999 19:11:34 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA20610 for ; Sun, 14 Feb 1999 19:11:32 -0800 (PST) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id EAA26605 for freebsd-hackers@FreeBSD.ORG; Mon, 15 Feb 1999 04:11:29 +0100 (CET) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id 8354A1512; Mon, 15 Feb 1999 01:00:39 +0100 (CET) Date: Mon, 15 Feb 1999 01:00:39 +0100 From: Ollivier Robert To: freebsd-hackers@FreeBSD.ORG Subject: Re: install -C Message-ID: <19990215010039.A7717@keltia.freenix.fr> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <86u2wpc0iy.fsf@niobe.ewox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <86u2wpc0iy.fsf@niobe.ewox.org>; from Dag-Erling Smorgrav on Sun, Feb 14, 1999 at 01:05:41AM +0100 X-Operating-System: FreeBSD 3.0-CURRENT/ELF ctm#5026 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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