diff options
author | Nguyễn Thái Ngọc Duy | 2010-04-15 16:55:04 -0700 |
---|---|---|
committer | Denys Vlasenko | 2010-04-15 16:55:04 -0700 |
commit | 36dcf4e516baac2aa454badc0686c4212dc997fe (patch) | |
tree | ac44b4686bd430f2b4254ddb84eac0a6b6be6111 | |
parent | c2d413ba74bd140043da80c9418c6be96056afb2 (diff) | |
download | busybox-36dcf4e516baac2aa454badc0686c4212dc997fe.zip busybox-36dcf4e516baac2aa454badc0686c4212dc997fe.tar.gz |
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>
-rw-r--r-- | archival/ar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/ar.c b/archival/ar.c index 9039747..1b7b66a 100644 --- a/archival/ar.c +++ b/archival/ar.c @@ -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++); } |