From owner-freebsd-stable Tue Dec 28 14:42:20 1999 Delivered-To: freebsd-stable@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id D6A1F14EB9 for ; Tue, 28 Dec 1999 14:42:10 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=ben) by scientia.demon.co.uk with smtp (Exim 3.092 #1) id 1234gt-000C9n-00; Tue, 28 Dec 1999 22:02:03 +0000 Date: Tue, 28 Dec 1999 22:02:02 +0000 From: Ben Smithurst To: Brad Knowles Cc: chad@DCFinc.com, jedgar@fxp.org, mark@dogma.freebsd-uk.eu.org, stanb@netcom.com, freebsd-stable@FreeBSD.ORG Subject: Re: Huge differences in suid programs ? Message-ID: <19991228220202.C46546@strontium.scientia.demon.co.uk> References: <199912281721.KAA12868@freeway.dcfinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brad Knowles wrote: > At 10:21 AM -0700 1999/12/28, Chad R. Larson wrote: > >> The -C option to install causes install to make a temporary copy of the >> "new" file in the target directory, and then does a byte-by-byte compare >> with the "old" one. If they're different, it deletes the old and >> renames the new. > > Sigh. It can't do the comparison with the new file in it's > current location, then do the copy if they're different? That would > seem to be the intelligent thing to do. You mean compare /usr/obj/usr/src/bin/sh with /bin/sh (or whatever the path is)? I don't think that would work, since /usr/obj/... files aren't stripped, and the installed versions are. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message