ar: fix a regression: "ar t arch.a" stopped shoting files
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c2d413ba74
commit
36dcf4e516
@ -235,7 +235,8 @@ int ar_main(int argc UNUSED_PARAM, char **argv)
|
||||
: O_RDONLY
|
||||
);
|
||||
|
||||
archive_handle->filter = filter_accept_list;
|
||||
if (*argv)
|
||||
archive_handle->filter = filter_accept_list;
|
||||
while (*argv) {
|
||||
llist_add_to_end(&archive_handle->accept, *argv++);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user