From 93c61e374ac39c9ee4ae02cafb987ceb3ac327ab Mon Sep 17 00:00:00 2001 From: jh Date: Tue, 22 Dec 2009 15:13:16 +0000 Subject: Don't print the archive name with -p and -q options. PR: bin/141280 Approved by: des, trasz (mentor) --- usr.bin/unzip/unzip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/unzip/unzip.c b/usr.bin/unzip/unzip.c index f0856a4..e5984ba 100644 --- a/usr.bin/unzip/unzip.c +++ b/usr.bin/unzip/unzip.c @@ -814,7 +814,8 @@ unzip(const char *fn) ac(archive_read_support_format_zip(a)); ac(archive_read_open_fd(a, fd, 8192)); - printf("Archive: %s\n", fn); + if (!p_opt && !q_opt) + printf("Archive: %s\n", fn); if (v_opt == 1) { printf(" Length Date Time Name\n"); printf(" -------- ---- ---- ----\n"); -- cgit v1.1