From 06ab5fb6b9d641ee184facb81eaee718e418d9b2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 2 Sep 2006 18:40:10 +0000 Subject: tar: tar xf foo.tar dir/dir did not extract all subdirs. Added testsuite entry for this --- testsuite/tar/tar-extracts-all-subdirs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testsuite/tar/tar-extracts-all-subdirs (limited to 'testsuite/tar/tar-extracts-all-subdirs') diff --git a/testsuite/tar/tar-extracts-all-subdirs b/testsuite/tar/tar-extracts-all-subdirs new file mode 100644 index 0000000..886c37c --- /dev/null +++ b/testsuite/tar/tar-extracts-all-subdirs @@ -0,0 +1,12 @@ +# FEATURE: CONFIG_FEATURE_TAR_CREATE +mkdir -p foo/{1,2,3} +mkdir -p foo/1/{10,11} +mkdir -p foo/1/10/{100,101,102} +tar cf foo.tar -C foo . +rm -rf foo/* +busybox tar xf foo.tar -C foo ./1/10 +find foo | sort >logfile.bb +rm -rf foo/* +tar xf foo.tar -C foo ./1/10 +find foo | sort >logfile.gnu +cmp logfile.gnu logfile.bb -- cgit v1.1