[lintian] 01/01: L::L::Entry: Do not read from a closed handle
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 8cfcd912d02fa2d39bace184f3901484ea622c0c
Author: Niels Thykier <niels@thykier.net>
Date: Fri Feb 13 20:27:05 2015 +0100
L::L::Entry: Do not read from a closed handle
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/Lab/Entry.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/Lintian/Lab/Entry.pm b/lib/Lintian/Lab/Entry.pm
index db28d30..e17007c 100644
--- a/lib/Lintian/Lab/Entry.pm
+++ b/lib/Lintian/Lab/Entry.pm
@@ -417,9 +417,10 @@ sub _init {
if (my $err = $@) {
die($err) if $err->errno != POSIX::ENOENT;
$exists = $self->exists;
+ } else {
+ @data = parse_dpkg_control($fd);
+ close($fd);
}
- @data = parse_dpkg_control($fd);
- close($fd);
if ($newentry) {
my $pkg_path = $self->pkg_path;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: