提交 8c178687 编写于 作者: P Pierre Habouzit 提交者: Junio C Hamano

git send-email: avoid leaking directory file descriptors.

Signed-off-by: NPierre Habouzit <madcoder@debian.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 30affa1e
......@@ -407,10 +407,9 @@ sub read_config {
push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
closedir(DH);
} elsif (-f $f or -p $f) {
push @files, $f;
} else {
print STDERR "Skipping $f - not found.\n";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册