equal
deleted
inserted
replaced
1 This patch was fed back to the upstream community: |
|
2 http://code.google.com/p/libarchive/issues/detail?id=287 |
|
3 Given the response "I just committed your patch.", it should |
|
4 no longer be needed with the next release. |
|
5 |
|
6 --- libarchive/libarchive/archive_write_set_format_ar.c.orig Mon Mar 26 19:49:00 2012 |
|
7 +++ libarchive/libarchive/archive_write_set_format_ar.c Tue Nov 27 17:48:04 2012 |
|
8 @@ -165,7 +165,7 @@ |
|
9 * Reject files with empty name. |
|
10 */ |
|
11 pathname = archive_entry_pathname(entry); |
|
12 - if (*pathname == '\0') { |
|
13 + if (pathname == NULL || *pathname == '\0') { |
|
14 archive_set_error(&a->archive, EINVAL, |
|
15 "Invalid filename"); |
|
16 return (ARCHIVE_WARN); |
|