diff options
author | jh <jh@FreeBSD.org> | 2009-12-22 15:13:16 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-12-22 15:13:16 +0000 |
commit | 93c61e374ac39c9ee4ae02cafb987ceb3ac327ab (patch) | |
tree | b61c3f8ddb09326a6627e7139bcaab08b7c81b4d /usr.bin | |
parent | 2c27b3cca9f677862d6dbcb87b5d153887db5c09 (diff) | |
download | FreeBSD-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)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/unzip/unzip.c | 3 |
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"); |