From 221a6c9726a47810fcf8760bcd286aa8f4e4f390 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 3 Dec 2025 07:09:04 -0500 Subject: Derp. Make unalf -F option actually work. --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io.c b/src/io.c index c4fa295..294751a 100644 --- a/src/io.c +++ b/src/io.c @@ -74,13 +74,13 @@ static void sanity_check_header(long pos) { if(compsize > (s.st_size - pos)) { fatal = !(opts.force || opts.listonly); fprintf(stderr, "%s: %s: compressed size for header #%d is bigger than the rest of the file (truncated?), use -F to override.\n", fatal ? "fatal" : "warning", self, headers_read); - exit(1); + if(fatal) exit(1); } if(compsize > origsize * 2) { fatal = !(opts.force || opts.listonly); fprintf(stderr, "%s: %s: compressed size for header #%d is over twice the uncompressed size (corrupt?), use -F to override.\n", fatal ? "fatal": "warning", self, headers_read); - exit(1); + if(fatal) exit(1); } } -- cgit v1.2.3