aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-05 04:43:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-05 04:43:21 +0100
commitaf1c8e8be070f2121d5d977c5ed7a7f60c03a6dc (patch)
tree7f0bc3627ab6b07baf8d8b835e5d47f5c9cb34c5 /testsuite
parent074e8dcba76ac2a313d6a14ca2289e648f926b25 (diff)
downloadbusybox-w32-af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc.tar.gz
busybox-w32-af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc.tar.bz2
busybox-w32-af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc.zip
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>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/cpio.tests4
1 files changed, 3 insertions, 1 deletions
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" \
36"\ 36"\
371 blocks 371 blocks
380 380
39total 0
39-rw-r--r-- 2 $user $group 0 x 40-rw-r--r-- 2 $user $group 0 x
40-rw-r--r-- 2 $user $group 0 y 41-rw-r--r-- 2 $user $group 0 y
41" \ 42" \
@@ -47,10 +48,10 @@ test x"$SKIP_KNOWN_BUGS" = x"" && {
47testing "cpio lists hardlinks" \ 48testing "cpio lists hardlinks" \
48"$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \ 49"$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \
49"\ 50"\
501 block
51cpio.testdir 51cpio.testdir
52cpio.testdir/x 52cpio.testdir/x
53cpio.testdir/y 53cpio.testdir/y
541 blocks
540 550
55" \ 56" \
56 "" "" 57 "" ""
@@ -72,6 +73,7 @@ ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \
72"\ 73"\
732 blocks 742 blocks
740 750
76total 8
75-rw-r--r-- 2 $user $group 0 empty 77-rw-r--r-- 2 $user $group 0 empty
76-rw-r--r-- 2 $user $group 0 empty1 78-rw-r--r-- 2 $user $group 0 empty1
77-rw-r--r-- 2 $user $group 2 nonempty 79-rw-r--r-- 2 $user $group 2 nonempty