diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-03 07:09:04 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-03 07:09:04 -0500 |
| commit | 221a6c9726a47810fcf8760bcd286aa8f4e4f390 (patch) | |
| tree | 00e3481730c78d949848181c5cc65bc2a8437d1e | |
| parent | e43d2a7c9724254f8dff0719bca99ffd5d488e6b (diff) | |
| download | alftools-221a6c9726a47810fcf8760bcd286aa8f4e4f390.tar.gz | |
Derp. Make unalf -F option actually work.0.3.0
| -rw-r--r-- | src/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |
