From: Stephen Seo Date: Mon, 21 Oct 2024 08:35:55 +0000 (+0900) Subject: Fix where symlink marked invalid still created v1 X-Git-Tag: 1.5~1 X-Git-Url: https://git.seodisparate.com/stephenseo/static/static/git-logo.png?a=commitdiff_plain;h=1c06462ca7810cdfcef3f6f33f7f9619bd0b5691;p=SimpleArchiver Fix where symlink marked invalid still created v1 --- diff --git a/src/archiver.c b/src/archiver.c index 555e802..59f741d 100644 --- a/src/archiver.c +++ b/src/archiver.c @@ -3717,7 +3717,7 @@ int simple_archiver_parse_archive_version_1(FILE *in_f, int_fast8_t do_extract, uint_fast8_t link_extracted = 0; uint_fast8_t skip_due_to_map = 0; - uint_fast8_t skip_due_to_invalid = 0; + uint_fast8_t skip_due_to_invalid = is_invalid ? 1 : 0; if (fread(buf, 1, 2, in_f) != 2) { return SDAS_INVALID_FILE;