diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
commit | 0cb7bf61b1e9f05027de58c80f9b46a714d24e35 (patch) | |
tree | 41fb55cf62d07b425122f9a8b96412c0d8eb99c5 /scripts/get_maintainer.pl | |
parent | aa877175e7a9982233ed8f10cb4bfddd78d82741 (diff) | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
Merge branch 'linus' into smp/hotplug
Apply upstream changes to avoid conflicts with pending patches.
Diffstat (limited to 'scripts/get_maintainer.pl')
-rwxr-xr-x | scripts/get_maintainer.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 122fcdaf42c8..aed4511f0304 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl | |||
@@ -432,7 +432,7 @@ foreach my $file (@ARGV) { | |||
432 | die "$P: file '${file}' not found\n"; | 432 | die "$P: file '${file}' not found\n"; |
433 | } | 433 | } |
434 | } | 434 | } |
435 | if ($from_filename || vcs_file_exists($file)) { | 435 | if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) { |
436 | $file =~ s/^\Q${cur_path}\E//; #strip any absolute path | 436 | $file =~ s/^\Q${cur_path}\E//; #strip any absolute path |
437 | $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree | 437 | $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree |
438 | push(@files, $file); | 438 | push(@files, $file); |
@@ -2136,9 +2136,11 @@ sub vcs_file_exists { | |||
2136 | 2136 | ||
2137 | my $cmd = $VCS_cmds{"file_exists_cmd"}; | 2137 | my $cmd = $VCS_cmds{"file_exists_cmd"}; |
2138 | $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd | 2138 | $cmd =~ s/(\$\w+)/$1/eeg; # interpolate $cmd |
2139 | 2139 | $cmd .= " 2>&1"; | |
2140 | $exists = &{$VCS_cmds{"execute_cmd"}}($cmd); | 2140 | $exists = &{$VCS_cmds{"execute_cmd"}}($cmd); |
2141 | 2141 | ||
2142 | return 0 if ($? != 0); | ||
2143 | |||
2142 | return $exists; | 2144 | return $exists; |
2143 | } | 2145 | } |
2144 | 2146 | ||