diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2010-02-05 14:55:24 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2010-02-05 14:55:24 +0100 |
| commit | a9578de2a6f31dee162e7f9470d096fa6861a205 (patch) | |
| tree | 657c25d6afa75ca98ffbdc22e31dda1456cbbb70 /libarchive | |
| parent | 48b5f70d6db469a171d8581791247508df74e0de (diff) | |
| download | tuxcmd-modules-a9578de2a6f31dee162e7f9470d096fa6861a205.tar.xz | |
libarchive: skip entries with NULL pathnames
Diffstat (limited to 'libarchive')
| -rw-r--r-- | libarchive/libarchive.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |
