mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 18:55:12 +00:00
get_maintainer: repair STDIN usage
Commit 22dd5b0cba
(fix perlcritic warnings)
broke the ability to handle STDIN because the three argument version of
open() cannot handle standard IO-streams (which is mentioned in
PerlBestPractices, too).
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1d53661d26
commit
3a4df13d24
@ -284,7 +284,7 @@ foreach my $file (@ARGV) {
|
||||
my $file_cnt = @files;
|
||||
my $lastfile;
|
||||
|
||||
open(my $patch, '<', $file)
|
||||
open(my $patch, "< $file")
|
||||
or die "$P: Can't open $file: $!\n";
|
||||
while (<$patch>) {
|
||||
my $patch_line = $_;
|
||||
|
Loading…
Reference in New Issue
Block a user