e0aa46df30
- Update to 1.23.2 * for a full list of changes see http://www.busybox.net/news.html - Cleaned up spec file with spec-cleaner - Refreshed patches - Update to 1.23.2 * for a full list of changes see http://www.busybox.net/news.html - Cleaned up spec file with spec-cleaner - Refreshed patches OBS-URL: https://build.opensuse.org/request/show/298217 OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=35
15 lines
673 B
Diff
15 lines
673 B
Diff
Index: busybox-1.23.2/archival/libarchive/get_header_tar.c
|
|
===================================================================
|
|
--- busybox-1.23.2.orig/archival/libarchive/get_header_tar.c
|
|
+++ busybox-1.23.2/archival/libarchive/get_header_tar.c
|
|
@@ -304,6 +304,9 @@ char FAST_FUNC get_header_tar(archive_ha
|
|
}
|
|
file_header->link_target = NULL;
|
|
if (!p_linkname && parse_names && tar.linkname[0]) {
|
|
+ /* we trash magic[0] here to terminate tar.linkname, it's ok */
|
|
+ tar.magic[0] = '\0';
|
|
+
|
|
file_header->link_target = xstrndup(tar.linkname, sizeof(tar.linkname));
|
|
/* FIXME: what if we have non-link object with link_target? */
|
|
/* Will link_target be free()ed? */
|