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
3 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue