From owner-freebsd-stable@FreeBSD.ORG Wed Jun 16 00:38:44 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E840A106566C for ; Wed, 16 Jun 2010 00:38:44 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 878688FC0A for ; Wed, 16 Jun 2010 00:38:44 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.4/8.14.4) with ESMTP id o5G0cVpc069868; Tue, 15 Jun 2010 18:38:31 -0600 (MDT) (envelope-from scottl@samsco.org) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Scott Long In-Reply-To: <4C18195A.3020501@delphij.net> Date: Tue, 15 Jun 2010 18:38:31 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <334BCBA6-2EAE-48CA-98BF-1DC82AEF1B8A@samsco.org> References: <1276639800.2462.80.camel@localhost.localdomain> <1276646707.2462.82.camel@localhost.localdomain> <4C18195A.3020501@delphij.net> To: d@delphij.net X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-50.0 required=3.8 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on pooker.samsco.org Cc: "delphij@freebsd.org" , "freebsd-stable@freebsd.org" , Sean Bruno Subject: Re: [Stable 7] CPIO breakage/ X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 00:38:45 -0000 On Jun 15, 2010, at 6:22 PM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > On 2010/06/15 17:05, Sean Bruno wrote: >> On Tue, 2010-06-15 at 17:10 -0500, Sean Bruno wrote: >>> = http://svn.freebsd.org/viewvc/base?limit_changes=3D0&view=3Drevision&revis= ion=3D208361 >>>=20 >>> I'm not sure what's up with this update, but it hosed up the default >>> behavior of cpio. >>>=20 >>> It appears now that -o won't do the same things that it used to: >>>=20 >>> + cd / >>> + find -x . >>> + egrep -v '^\.(/snap|/usr/sup|/boot/kernel/kernel >>> \.[[:alpha:]_]+\.[[:digit:]]+|/boot/kernel/kernel >>> = \.old|/etc/start_if.*|/etc/ssh/ssh_host_.*key|/etc/hostid|/etc/(master.pas= swd|passwd|spwd.db|pwd.db))' >>> + '[' -n '' ']' >>> + '[' 7 =3D 4 ']' >>> + '[' -n '' -a -z '' ']' >>> + '[' -n /home/backup ']' >>> + echo 'dumping / ...' >>> dumping / ... >>> + cpio -o --quiet --format crc -O /home/backup/root.amd64.cpio >>> cpio: ./dev not dumped: minor number would be truncated >>> cpio: Removing leading `/' from member names >>> cpio: ./proc not dumped: minor number would be truncated >>> cpio: Removing leading `../' from member names >>>=20 >>> We've had to revert this change from our local tree, suggestions? >>>=20 >>> Sean >>=20 >>=20 >> A little more background. It looks like symlinks are getting = stripped >> of their '/' which sucks. Ideas? >>=20 >> Sean >>=20 >> e.g. /home/foo/bar -> /opt/baz/blob >>=20 >> becomes >>=20 >> home/foo/bar -> opt/baz/blob =20 >>=20 >> Yuck. >=20 > This is a security measurement I think. >=20 > - --absolute-filenames disables this behavior. This is exactly the kind of stuff that was supposed to be avoided in = stable branches. Your import of cpio cost us several days of debugging. Scott