From owner-freebsd-stable@FreeBSD.ORG Wed Jun 16 00:23:03 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 1BBAD106568D; Wed, 16 Jun 2010 00:23:03 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 817818FC13; Wed, 16 Jun 2010 00:23:01 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 74936A571C9; Wed, 16 Jun 2010 08:23:00 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id lMdm75sociM2; Wed, 16 Jun 2010 08:22:54 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 64D71A56F43; Wed, 16 Jun 2010 08:22:53 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=B10b8s3zdUozfCW4J1C26C451leHT6kBDHttfR28AH8ebXlcKx3huhZKdy/zhsFwR 7qvhSpEar7SlHokMJxdmA== Message-ID: <4C18195A.3020501@delphij.net> Date: Tue, 15 Jun 2010 17:22:50 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100602 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: Sean Bruno References: <1276639800.2462.80.camel@localhost.localdomain> <1276646707.2462.82.camel@localhost.localdomain> In-Reply-To: <1276646707.2462.82.camel@localhost.localdomain> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "freebsd-stable@freebsd.org" , "delphij@freebsd.org" Subject: Re: [Stable 7] CPIO breakage/ X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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:23:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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=0&view=revision&revision=208361 >> >> I'm not sure what's up with this update, but it hosed up the default >> behavior of cpio. >> >> It appears now that -o won't do the same things that it used to: >> >> + 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.passwd|passwd|spwd.db|pwd.db))' >> + '[' -n '' ']' >> + '[' 7 = 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 >> >> We've had to revert this change from our local tree, suggestions? >> >> Sean > > > A little more background. It looks like symlinks are getting stripped > of their '/' which sucks. Ideas? > > Sean > > e.g. /home/foo/bar -> /opt/baz/blob > > becomes > > home/foo/bar -> opt/baz/blob > > Yuck. This is a security measurement I think. - --absolute-filenames disables this behavior. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBCAAGBQJMGBlZAAoJEATO+BI/yjfBAekH/1F/g1JUZWricyMmy2hF5f5x EvHnp6j5GClGRFm/llh5FdYhEMlS7gYEgcHhT96TSicetgy7Jzs3+Cq7aAcDAXCv jyHlf0EMvTSDKHO8tDn8EXxlhxiBIRM1iMPvuzKAiH3HqPFufOvK41ozc4dpkXzS YLtbKUE4heEXIDP6Pm3nMDupc1BAax0JHqCmU7a/Th3WMWBmllpCQmKqfRP8w11i GLmrQ/nWwX/y7eSKlr9azB/uZr6cCdo4bB+VcuyWO9hyHf5QtLv5peHqAD8iO9Ph VhyRUzcTlYhBtYHOvStIAyWh3c9WV/D0nsh3+NugajSRMoD9oAVKsLOWSlmtKCw= =t5Tx -----END PGP SIGNATURE-----