svn commit: r200844 - head/usr.bin/unzip

Jaakko Heinonen jh at FreeBSD.org
Tue Dec 22 15:13:17 UTC 2009


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");


More information about the svn-src-all mailing list