From owner-freebsd-hackers Wed Mar 15 22:07:05 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA01286 for hackers-outgoing; Wed, 15 Mar 1995 22:07:05 -0800 Received: from trout.sri.MT.net (trout.sri.MT.net [204.182.243.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA01280 for ; Wed, 15 Mar 1995 22:07:01 -0800 Received: (from nate@localhost) by trout.sri.MT.net (8.6.9/8.6.9) id XAA29803; Wed, 15 Mar 1995 23:10:48 -0700 Date: Wed, 15 Mar 1995 23:10:48 -0700 From: Nate Williams Message-Id: <199503160610.XAA29803@trout.sri.MT.net> In-Reply-To: "Rodney W. Grimes" "Re: cpio bug ?" (Mar 15, 8:46pm) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: "Rodney W. Grimes" , phk@ref.tfs.com (Poul-Henning Kamp) Subject: Re: cpio bug ? Cc: hackers@FreeBSD.org Sender: hackers-owner@FreeBSD.org Precedence: bulk > > I think I have found one of the things which have troubled us in the > > install procedure, and would like to hear people opinions: > > > > In a cpio file I have: > > file usr/bin/passwd (root,bin, setuid+0555) > > symlink usr/bin/yppasswd (bin,bin,0755) -> passwd > > > > Now, cpio will do a chown(bin) on usr/bin/yppasswd, and this will > > make usr/bin/passwd owned by bin instead of root. > > > > Obviously wrong. > > > > How to fix this ? > > CPIO should stop doing chown/chmod's on symlinks since symlinks no longer > have there own protection. > > > Who will do it for me ? > > I am digging through the cpio source code now... looks like several > things will need to be tweaked :-(. Have we looked at PAX? It's a 4.4 thing, and it's supposed to do both cpio and tar like functions. (I think it can also do cpio and tar formats, which means that it could replace both of them) Nate