From af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 5 Jan 2010 04:43:21 +0100 Subject: 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 --- testsuite/cpio.tests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuite/cpio.tests') diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index f21ba18d1..56f1885ac 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests @@ -36,6 +36,7 @@ ls -ln cpio.testdir | $FILTER_LS" \ "\ 1 blocks 0 +total 0 -rw-r--r-- 2 $user $group 0 x -rw-r--r-- 2 $user $group 0 y " \ @@ -47,10 +48,10 @@ test x"$SKIP_KNOWN_BUGS" = x"" && { testing "cpio lists hardlinks" \ "$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \ "\ -1 block cpio.testdir cpio.testdir/x cpio.testdir/y +1 blocks 0 " \ "" "" @@ -72,6 +73,7 @@ ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ "\ 2 blocks 0 +total 8 -rw-r--r-- 2 $user $group 0 empty -rw-r--r-- 2 $user $group 0 empty1 -rw-r--r-- 2 $user $group 2 nonempty -- cgit v1.2.3