mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
tar: tar xf foo.tar dir/dir did not extract all subdirs.
Added testsuite entry for this
This commit is contained in:
parent
bcf4908e71
commit
06ab5fb6b9
@ -13,7 +13,7 @@
|
||||
const llist_t *find_list_entry(const llist_t *list, const char *filename)
|
||||
{
|
||||
while (list) {
|
||||
if (fnmatch(list->data, filename, 0) == 0) {
|
||||
if (fnmatch(list->data, filename, FNM_LEADING_DIR) == 0) {
|
||||
return (list);
|
||||
}
|
||||
list = list->link;
|
||||
|
@ -1,3 +1,6 @@
|
||||
Update: doesn't work as described. Try "make check" from parent dir...
|
||||
* * *
|
||||
|
||||
To run the test suite, change to this directory and run "./runtest". It will
|
||||
run all of the test cases, and list those with unexpected outcomes. Adding the
|
||||
-v option will cause it to show expected outcomes as well. To only run the test
|
||||
|
12
testsuite/tar/tar-extracts-all-subdirs
Normal file
12
testsuite/tar/tar-extracts-all-subdirs
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user