From owner-svn-src-all@FreeBSD.ORG Tue Dec 22 15:13:17 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F39DF106568F; Tue, 22 Dec 2009 15:13:16 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E2FAB8FC13; Tue, 22 Dec 2009 15:13:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBMFDG01067659; Tue, 22 Dec 2009 15:13:16 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBMFDGRD067657; Tue, 22 Dec 2009 15:13:16 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <200912221513.nBMFDGRD067657@svn.freebsd.org> From: Jaakko Heinonen Date: Tue, 22 Dec 2009 15:13:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200844 - head/usr.bin/unzip X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 15:13:17 -0000 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");