components/libarchive/patches/archive_write_set_format_ar.c.patch
author William.D.Johnston <William.D.Johnston@oracle.com>
Sun, 12 Jul 2015 15:01:25 -0700
changeset 4634 a4940ac4947c
parent 1316 22b5cf35a3ea
permissions -rw-r--r--
20886490 proftpd can't open wtmpx after one login failure, doesn't register the ftp login 20717794 proftpd changes group ownership of file /etc/shadow after user login failure 19318572 root logins can't get all privilege when Solaris PrivilegeEngine enabled

This patch was fed back to the upstream community:
http://code.google.com/p/libarchive/issues/detail?id=287
Given the response "I just committed your patch.", it should
no longer be needed with the next release.

--- libarchive/libarchive/archive_write_set_format_ar.c.orig	Mon Mar 26 19:49:00 2012
+++ libarchive/libarchive/archive_write_set_format_ar.c	Tue Nov 27 17:48:04 2012
@@ -165,7 +165,7 @@
 	 * Reject files with empty name.
 	 */
 	pathname = archive_entry_pathname(entry);
-	if (*pathname == '\0') {
+	if (pathname == NULL || *pathname == '\0') {
 		archive_set_error(&a->archive, EINVAL,
 		    "Invalid filename");
 		return (ARCHIVE_WARN);