tar: skip leading / and handle names like abc/..////def -> def (not ///def)
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Mar 2011 00:21:02 +0000 (01:21 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Mar 2011 00:21:02 +0000 (01:21 +0100)
commitb80acf58f16339078da5cbee88a322f2450aa2ad
treec542be76efce95b7da793c9736fe92d56afb71c1
parentea6116ee59af0945f4a6ac9ede984930a0ede429
tar: skip leading / and handle names like abc/..////def -> def (not ///def)

function                                             old     new   delta
strip_unsafe_prefix                                    -     105    +105
writeFileToTarball                                   557     520     -37
get_header_tar                                      1545    1462     -83

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/get_header_tar.c
archival/tar.c
include/archive.h
testsuite/tar.tests