Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/unzip Don't print "Archive:" line if quiet flag is set.
details: https://anonhg.NetBSD.org/src/rev/f2dfece0b538
branches: trunk
changeset: 747735:f2dfece0b538
user: wiz <wiz%NetBSD.org@localhost>
date: Wed Sep 30 10:04:54 2009 +0000
description:
Don't print "Archive:" line if quiet flag is set.
diffstat:
usr.bin/unzip/unzip.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 44cca05e70f0 -r f2dfece0b538 usr.bin/unzip/unzip.c
--- a/usr.bin/unzip/unzip.c Wed Sep 30 04:30:50 2009 +0000
+++ b/usr.bin/unzip/unzip.c Wed Sep 30 10:04:54 2009 +0000
@@ -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 <joerg%NetBSD.org@localhost>
@@ -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");
Home |
Main Index |
Thread Index |
Old Index