aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-15 16:55:04 -0700
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-15 16:55:04 -0700
commit36dcf4e516baac2aa454badc0686c4212dc997fe (patch)
treeac44b4686bd430f2b4254ddb84eac0a6b6be6111
parentc2d413ba74bd140043da80c9418c6be96056afb2 (diff)
downloadbusybox-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 90397474d..1b7b66a57 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++);
}