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:
parent
30affa1e9a
commit
8c17868795
@ -407,10 +407,9 @@ for my $f (@ARGV) {
|
||||
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user