From 36dcf4e516baac2aa454badc0686c4212dc997fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Thu, 15 Apr 2010 16:55:04 -0700 Subject: [PATCH] ar: fix a regression: "ar t arch.a" stopped shoting files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Denys Vlasenko --- archival/ar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++); } -- 2.25.1