[Stable 7] CPIO breakage/
Xin LI
delphij at delphij.net
Wed Jun 16 00:23:03 UTC 2010
-----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 <delphij at delphij.net> 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-----
More information about the freebsd-stable
mailing list