Skip to content

Commit

Permalink
git send-email: avoid leaking directory file descriptors.
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pierre Habouzit authored and Junio C Hamano committed Nov 2, 2008
1 parent 30affa1 commit 8c17868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 8c17868

Please sign in to comment.