Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 15:13:16 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200844 - head/usr.bin/unzip
Message-ID:  <200912221513.nBMFDGRD067657@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jh
Date: Tue Dec 22 15:13:16 2009
New Revision: 200844
URL: http://svn.freebsd.org/changeset/base/200844

Log:
  Don't print the archive name with -p and -q options.
  
  PR:		bin/141280
  Approved by:	des, trasz (mentor)

Modified:
  head/usr.bin/unzip/unzip.c

Modified: head/usr.bin/unzip/unzip.c
==============================================================================
--- head/usr.bin/unzip/unzip.c	Tue Dec 22 15:08:06 2009	(r200843)
+++ head/usr.bin/unzip/unzip.c	Tue Dec 22 15:13:16 2009	(r200844)
@@ -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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912221513.nBMFDGRD067657>