From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 345FC1395E2 for ; Sat, 26 Nov 2016 23:24:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02BBDE0A84; Sat, 26 Nov 2016 23:24:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAA81E0A84 for ; Sat, 26 Nov 2016 23:24:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D4D9341265 for ; Sat, 26 Nov 2016 23:24:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DB8448B for ; Sat, 26 Nov 2016 23:24:06 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1480202639.3aa4c173d3fb52c700109cb625dbefb5d3e45628.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 3aa4c173d3fb52c700109cb625dbefb5d3e45628 X-VCS-Branch: master Date: Sat, 26 Nov 2016 23:24:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 917226c9-d3ce-4e1f-bf99-2c2e1d105070 X-Archives-Hash: 9b1e7fadb8bbba456c2d0124e1cef83b commit: 3aa4c173d3fb52c700109cb625dbefb5d3e45628 Author: Mike Frysinger gentoo org> AuthorDate: Sat Nov 26 23:23:59 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Nov 26 23:23:59 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3aa4c173 --quiet: only open /dev/null once (in case of -qqqqqqq) main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 8e0e2ad..ff7648d 100644 --- a/main.c +++ b/main.c @@ -107,7 +107,7 @@ void no_colors(void) #define COMMON_GETOPTS_CASES(applet) \ case 0x1: portroot = optarg; break; \ case 'v': ++verbose; break; \ - case 'q': ++quiet; warnout = fopen("/dev/null", "we"); break; \ + case 'q': if (quiet == 0) { warnout = fopen("/dev/null", "we"); } ++quiet; break; \ case 'V': version_barf(); break; \ case 'h': applet ## _usage(EXIT_SUCCESS); break; \ case 'C': no_colors(); break; \