Module Name: src Committed By: wiz Date: Wed Sep 30 10:04:55 UTC 2009
Modified Files: src/usr.bin/unzip: unzip.c Log Message: Don't print "Archive:" line if quiet flag is set. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/usr.bin/unzip/unzip.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/unzip/unzip.c diff -u src/usr.bin/unzip/unzip.c:1.8 src/usr.bin/unzip/unzip.c:1.9 --- src/usr.bin/unzip/unzip.c:1.8 Fri Sep 18 13:05:19 2009 +++ src/usr.bin/unzip/unzip.c Wed Sep 30 10:04:54 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: unzip.c,v 1.8 2009/09/18 13:05:19 joerg Exp $ */ +/* $NetBSD: unzip.c,v 1.9 2009/09/30 10:04:54 wiz Exp $ */ /*- * Copyright (c) 2009 Joerg Sonnenberger <jo...@netbsd.org> @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: unzip.c,v 1.8 2009/09/18 13:05:19 joerg Exp $"); +__RCSID("$NetBSD: unzip.c,v 1.9 2009/09/30 10:04:54 wiz Exp $"); #include <sys/queue.h> #include <sys/stat.h> @@ -865,7 +865,9 @@ 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");