summaryrefslogtreecommitdiff
path: root/usr.bin/unzip
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2009-12-22 15:13:16 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2009-12-22 15:13:16 +0000
commita49365ac09ca494ac56f5ff91bc0652b6d7bdebf (patch)
treeb61c3f8ddb09326a6627e7139bcaab08b7c81b4d /usr.bin/unzip
parenta13f319046ffbdd834dff00d1e257339b6820f31 (diff)
downloadsrc-test-a49365ac09ca494ac56f5ff91bc0652b6d7bdebf.tar.gz
src-test-a49365ac09ca494ac56f5ff91bc0652b6d7bdebf.zip
Don't print the archive name with -p and -q options.
PR: bin/141280 Approved by: des, trasz (mentor)
Notes
Notes: svn path=/head/; revision=200844
Diffstat (limited to 'usr.bin/unzip')
-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 f0856a430e32c..e5984ba004dee 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");