Browse Source

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>
maint
Pierre Habouzit 16 years ago committed by Junio C Hamano
parent
commit
8c17868795
  1. 3
      git-send-email.perl

3
git-send-email.perl

@ -407,10 +407,9 @@ for my $f (@ARGV) { @@ -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…
Cancel
Save