summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_ar.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@acm.org>2019-05-04 11:46:33 -0700
committerTim Kientzle <kientzle@acm.org>2019-05-04 11:46:33 -0700
commit863429fa66ce5bdf58cbec85af13c0f4d1ce43e7 (patch)
treef690dd8b84803b6c0ea79af7845dcdfc0735b279 /libarchive/archive_write_set_format_ar.c
parenta65bc2fc6c341312b8cf551414beb82a460b17a7 (diff)
parent60d24a255433d151423e055837cdfb72c3f7e7cf (diff)
downloadlibarchive-863429fa66ce5bdf58cbec85af13c0f4d1ce43e7.tar.gz
Merge branch 'master' into Issue1055
Diffstat (limited to 'libarchive/archive_write_set_format_ar.c')
-rw-r--r--libarchive/archive_write_set_format_ar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libarchive/archive_write_set_format_ar.c b/libarchive/archive_write_set_format_ar.c
index 50305ccb..253cac82 100644
--- a/libarchive/archive_write_set_format_ar.c
+++ b/libarchive/archive_write_set_format_ar.c
@@ -187,6 +187,11 @@ archive_write_ar_header(struct archive_write *a, struct archive_entry *entry)
buff[AR_name_offset] = '/';
goto stat;
}
+ if (strcmp(pathname, "/SYM64/") == 0) {
+ /* Entry is archive symbol table in GNU 64-bit format */
+ memcpy(buff + AR_name_offset, "/SYM64/", 7);
+ goto stat;
+ }
if (strcmp(pathname, "__.SYMDEF") == 0) {
/* Entry is archive symbol table in BSD format */
memcpy(buff + AR_name_offset, "__.SYMDEF", 9);