From a9578de2a6f31dee162e7f9470d096fa6861a205 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 5 Feb 2010 14:55:24 +0100 Subject: libarchive: skip entries with NULL pathnames --- libarchive/libarchive.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libarchive') diff --git a/libarchive/libarchive.c b/libarchive/libarchive.c index dffcaf8..8a507e3 100644 --- a/libarchive/libarchive.c +++ b/libarchive/libarchive.c @@ -356,6 +356,10 @@ VFSOpenArchive (struct TVFSGlobs *globs, const char *sName, GError **error) } log ("found file: %s, mode = %x\n", archive_entry_pathname (entry), archive_entry_mode (entry)); + if (archive_entry_pathname (entry) == NULL) { + fprintf (stderr, "(WW) VFSOpenArchive: found entry with empty pathname, inode_no = %lu\n", inode_no); + continue; + } inode_no++; /* Create a TVFSItem entry and fill all info */ -- cgit v1.2.3