1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-28 12:59:41 +01:00

git send-email: avoid leaking directory file descriptors.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Pierre Habouzit 2008-10-31 18:57:10 +00:00 committed by Junio C Hamano
parent 30affa1e9a
commit 8c17868795

View file

@ -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";
}