From 6c242cc9192561d9d424248177e81aae21463130 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 30 Sep 2009 10:04:54 +0000 Subject: [PATCH] Don't print "Archive:" line if quiet flag is set. --- usr.bin/unzip/unzip.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.bin/unzip/unzip.c b/usr.bin/unzip/unzip.c index 0eb0a6bbcc9..6af5e8791ec 100644 --- a/usr.bin/unzip/unzip.c +++ b/usr.bin/unzip/unzip.c @@ -1,4 +1,4 @@ -/* $NetBSD: unzip.c,v 1.7 2009/09/06 20:19:59 wiz Exp $ */ +/* $NetBSD: unzip.c,v 1.8 2009/09/18 13:05:19 joerg Exp $ */ /*- * Copyright (c) 2009 Joerg Sonnenberger @@ -37,7 +37,7 @@ */ #include -__RCSID("$NetBSD: unzip.c,v 1.7 2009/09/06 20:19:59 wiz Exp $"); +__RCSID("$NetBSD: unzip.c,v 1.8 2009/09/18 13:05:19 joerg Exp $"); #include #include @@ -865,7 +865,9 @@ 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 (!q_opt) + printf("Archive: %s\n", fn); + if (v_opt == 1) { printf(" Length Date Time Name\n"); printf(" -------- ---- ---- ----\n"); -- 2.11.4.GIT