The following commit has been merged in the master branch:
commit 75216988e32f19ad4a4dd178dd256e3276cb96d6
Author: Guillem Jover <[email protected]>
Date: Mon Nov 9 17:22:10 2009 +0100
dpkg-deb: Fix a file descriptor leak
Reported-by: Raphael Geissert <[email protected]>
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 69f8c34..aab35a8 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -225,6 +225,8 @@ static void info_field(const char *debar, const char
*directory,
if (c == EOF) break;
}
if (ferror(cc)) ohshite(_("failed during read of `control' component"));
+ if (fclose(cc))
+ ohshite(_("error closing the '%s' component"), "control");
if (doing) putc('\n',stdout);
m_output(stdout, _("<standard output>"));
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]