From owner-freebsd-hackers Tue Apr 4 20:44:30 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA01519 for hackers-outgoing; Tue, 4 Apr 1995 20:44:30 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA01513 for ; Tue, 4 Apr 1995 20:44:27 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.8/8.6.6) id TAA09413; Tue, 4 Apr 1995 19:43:52 -0700 From: "Rodney W. Grimes" Message-Id: <199504050243.TAA09413@gndrsh.aac.dev.com> Subject: Re: new install(1) utility To: terry@cs.weber.edu (Terry Lambert) Date: Tue, 4 Apr 1995 19:43:52 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.org In-Reply-To: <9504050024.AA23499@cs.weber.edu> from "Terry Lambert" at Apr 4, 95 06:24:16 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1474 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > > > Serves you right for using the install utility to do the install > > > instead of using "cp -p". > > > > Ahh, and the overhead of calling chown, chgrp, and chmod is much better? > > 'I don't think so'. > > Since "cp -p" preserves this information, you are saying that the > copy in the source tree has the incorrect owner, group, and permissions. That is exactly what he is saying, the copy in the object tree has the owner, group and permissions of what ever process created it and what umask was in effect at the time. > This is something which should be corrected in the source tree. Doing > the correction post-facto elsewhere is bogus. Either way, your going to end up execing chown (it can do the chgrp) and chmod. Your basically arguing that there should not be an install binary at all, and that we should be gluing all sorts of stuff around cp to make it do the job. I don't totally agree, but then I don't totally disagree. This is a place that comprimises have to be made, and it seems to me that adding a -t option to install to have it preserve the source files timestamp on the target is a reasonable one. It sure is a lot less work than trying to replace install with cp -p. I am not so sure about having it do things like gzip, strip, symbolic links and all that other gunk though. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD