summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2009-12-22 15:13:16 +0000
committerjh <jh@FreeBSD.org>2009-12-22 15:13:16 +0000
commit93c61e374ac39c9ee4ae02cafb987ceb3ac327ab (patch)
treeb61c3f8ddb09326a6627e7139bcaab08b7c81b4d
parent2c27b3cca9f677862d6dbcb87b5d153887db5c09 (diff)
downloadFreeBSD-src-93c61e374ac39c9ee4ae02cafb987ceb3ac327ab.zip
FreeBSD-src-93c61e374ac39c9ee4ae02cafb987ceb3ac327ab.tar.gz
Don't print the archive name with -p and -q options.
PR: bin/141280 Approved by: des, trasz (mentor)
-rw-r--r--usr.bin/unzip/unzip.c3
1 files changed, 2 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud