提交 aa21a1bf 编写于 作者: J Jonathan Neuschäfer 提交者: Greg Kroah-Hartman

scripts/get_abi.pl: Ignore hidden files

get_abi.pl currently collects every file in Documentation/ABI. This
causes a UnicodeDecodeError in Documentation/sphinx/kernel_abi.py,
when it finds my Vim swap files (.foo.swp) in the directory.

To avoid such issues, ignore hidden files in get_abi.pl.
Reviewed-by: NMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: NJonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220129005019.2090996-1-j.neuschaefer@gmx.netSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 28c9f3f9
...@@ -92,6 +92,7 @@ sub parse_abi { ...@@ -92,6 +92,7 @@ sub parse_abi {
my $mode = (stat($file))[2]; my $mode = (stat($file))[2];
return if ($mode & S_IFDIR); return if ($mode & S_IFDIR);
return if ($file =~ m,/README,); return if ($file =~ m,/README,);
return if ($file =~ m,/\.,);
my $name = $file; my $name = $file;
$name =~ s,.*/,,; $name =~ s,.*/,,;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册