Date: Tue, 07 Oct 2014 07:53:51 -0600 From: Ian Lepore <ian@FreeBSD.org> To: Daniel Braniss <danny@cs.huji.ac.il> Cc: hackers@freebsd.org Subject: Re: tar and / Message-ID: <1412690031.12052.202.camel@revolution.hippie.lan> In-Reply-To: <ED20B859-CDFF-4205-B7A9-A1A86AAAE1D9@cs.huji.ac.il> References: <ED20B859-CDFF-4205-B7A9-A1A86AAAE1D9@cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2014-10-07 at 09:44 +0300, Daniel Braniss wrote: > hi, > for security reasons tar removes the leading /, which is fine. > so I can chadir to /var/tmp, and do an extract there. The problem arise= s when there > is a file that is linked to /=85 > Is there some way to drop that leading =91/=91 too? >=20 > cheers, >=20 No, because the leading slash there is the data within the link file, not metadata describing the file which tar stores separately and can easily manipulate. The moral is to avoid rooted links, even though that can lead to things nearly as bad, such as links that begin with 8 levels of ../ -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1412690031.12052.202.camel>