mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08: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