From owner-freebsd-hackers Wed Mar 15 20:51:06 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA00199 for hackers-outgoing; Wed, 15 Mar 1995 20:51:06 -0800 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 UAA00193 for ; Wed, 15 Mar 1995 20:51:04 -0800 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.8/8.6.6) id UAA14348; Wed, 15 Mar 1995 20:46:14 -0800 From: "Rodney W. Grimes" Message-Id: <199503160446.UAA14348@gndrsh.aac.dev.com> Subject: Re: cpio bug ? To: phk@ref.tfs.com (Poul-Henning Kamp) Date: Wed, 15 Mar 1995 20:46:14 -0800 (PST) Cc: hackers@FreeBSD.org In-Reply-To: <199503160431.UAA09849@ref.tfs.com> from "Poul-Henning Kamp" at Mar 15, 95 08:31:27 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 823 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 :-(. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD