Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/unzip Only print the "Archive: xxx" header if not in...
details: https://anonhg.NetBSD.org/src/rev/0b9af8c04d20
branches: trunk
changeset: 752192:0b9af8c04d20
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 18 15:51:57 2010 +0000
description:
Only print the "Archive: xxx" header if not in extract-to-stdout mode.
diffstat:
usr.bin/unzip/unzip.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2502f176d452 -r 0b9af8c04d20 usr.bin/unzip/unzip.c
--- a/usr.bin/unzip/unzip.c Thu Feb 18 15:25:13 2010 +0000
+++ b/usr.bin/unzip/unzip.c Thu Feb 18 15:51:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unzip.c,v 1.11 2010/01/09 09:27:42 mbalmer Exp $ */
+/* $NetBSD: unzip.c,v 1.12 2010/02/18 15:51:57 joerg Exp $ */
/*-
* Copyright (c) 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: unzip.c,v 1.11 2010/01/09 09:27:42 mbalmer Exp $");
+__RCSID("$NetBSD: unzip.c,v 1.12 2010/02/18 15:51:57 joerg Exp $");
#include <sys/queue.h>
#include <sys/stat.h>
@@ -865,7 +865,7 @@
ac(archive_read_support_format_zip(a));
ac(archive_read_open_fd(a, fd, 8192));
- if (!q_opt)
+ if (!q_opt && !p_opt)
printf("Archive: %s\n", fn);
if (v_opt == 1) {
Home |
Main Index |
Thread Index |
Old Index