From: Stephen Seo Date: Mon, 27 Jan 2025 08:49:11 +0000 (+0900) Subject: WIP --prefix: Impl --prefix extract file fmt ver 2 X-Git-Tag: 1.12^2~12 X-Git-Url: https://git.seodisparate.com/stephenseo/annotated.html?a=commitdiff_plain;h=d63c9a14b03f7e551c0fdd2d7dd9f3a90dd49a72;p=SimpleArchiver WIP --prefix: Impl --prefix extract file fmt ver 2 TODO: Impl --prefix archive/extract for file format version 3 --- diff --git a/src/archiver.c b/src/archiver.c index ea87a9e..6f13c13 100644 --- a/src/archiver.c +++ b/src/archiver.c @@ -7997,6 +7997,11 @@ int simple_archiver_parse_archive_version_2(FILE *in_f, int_fast8_t do_extract, "/", simple_archiver_helper_datastructure_cleanup_nop); } + if (state && state->parsed->prefix) { + simple_archiver_list_add(string_parts, + strdup(state->parsed->prefix), + NULL); + } simple_archiver_list_add(string_parts, strdup(buf), NULL); simple_archiver_list_add( string_parts,