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");
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"