| author | Raphaël Hertzog <hertzog@debian.org> | |
| Sat, 26 Nov 2011 09:26:19 +0000 (10:26 +0100) | ||
| committer | Guillem Jover <guillem@debian.org> | |
| Mon, 5 Dec 2011 08:30:42 +0000 (09:30 +0100) |
LP: #369898
Signed-off-by: Guillem Jover <guillem@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
| debian/changelog | patch | blob | history | |
| src/filesdb.c | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
dependencies for another architecture. This is really basic for now since
it assumes all build dependencies must be satisfied on the listed
architecture. Closes: #648180 Thanks to Colin Watson for the patch.
+ * Error out if a dpkg database .list file is not a regular file. LP: #369898
[ Jonathan Nieder ]
* Bump po4a version in Build-Depends to 0.41, since earlier versions do
diff --git a/src/filesdb.c b/src/filesdb.c
--- a/src/filesdb.c
+++ b/src/filesdb.c
ohshite(_("unable to stat files list file for package '%.250s'"),
pkg->set->name);
+ if (!S_ISREG(stat_buf.st_mode))
+ ohshit(_("files list for package '%.250s' is not a regular file"),
+ pkg->set->name);
+
if (stat_buf.st_size) {
loaded_list = nfmalloc(stat_buf.st_size);
loaded_list_end = loaded_list + stat_buf.st_size;
