cpio: fix unpacking of names with leading slashes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Jan 2010 03:43:21 +0000 (04:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Jan 2010 03:43:21 +0000 (04:43 +0100)
commitaf1c8e8be070f2121d5d977c5ed7a7f60c03a6dc
tree7f0bc3627ab6b07baf8d8b835e5d47f5c9cb34c5
parent074e8dcba76ac2a313d6a14ca2289e648f926b25
cpio: fix unpacking of names with leading slashes

function                                             old     new   delta
get_header_cpio                                      968     990     +22
cpio_main                                            533     526      -7

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/cpio.c
archival/libunarchive/get_header_cpio.c
testsuite/cpio.tests