From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139AbcHKWqJ (ORCPT ); Thu, 11 Aug 2016 18:46:09 -0400 Received: from smtprelay0245.hostedemail.com ([216.40.44.245]:41537 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751505AbcHKWqI (ORCPT ); Thu, 11 Aug 2016 18:46:08 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:800:960:973:982:988:989:1260:1345:1437:1534:1540:1711:1714:1730:1747:1777:1792:2197:2199:2393:2559:2562:2915:3138:3139:3140:3141:3142:3351:3653:3865:3868:3874:4321:5007:6119:6261:7903:9592:10004:10848:11026:11658:11914:12043:12517:12519:12555:12679:13069:13095:13221:13229:13311:13357:14181:14384:14394:14721:21080:21221:21433:21451:30054:30069:30070,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:19,LUA_SUMMARY:none X-HE-Tag: news77_522d96cbe3656 X-Filterd-Recvd-Size: 1615 From: Joe Perches To: Andrew Morton Cc: Wolfram Sang , Linus Torvalds , linux-kernel@vger.kernel.org Subject: [PATCH] get_maintainer: Quiet noisy implicit -f vcs_file_exists checking Date: Thu, 11 Aug 2016 15:46:02 -0700 Message-Id: <1970a1d2fecb258e384e2e4fdaacdc9ccf3e30a4.1470955439.git.joe@perches.com> X-Mailer: git-send-email 2.8.0.rc4.16.g56331f8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Checking command line filenames that are outside the git tree can emit a noisy and confusing message. Quiet that message by redirecting stderr. Verify that the command was executed successfully. Fixes: 4cad35a7ca69 ("get_maintainer.pl: reduce need for command-line option -f") Reported-by: Wolfram Sang Signed-off-by: Joe Perches --- scripts/get_maintainer.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 49a00d5..aed4511 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -2136,9 +2136,11 @@ sub vcs_file_exists { my $cmd = $VCS_cmds{"file_exists_cmd"}; $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd - + $cmd .= " 2>&1"; $exists = &{$VCS_cmds{"execute_cmd"}}($cmd); + return 0 if ($? != 0); + return $exists; } -- 2.8.0.rc4.16.g56331f8