News for hackers. Stuff that matters.
Re:The Hardest Tarball? by wolrah on Tuesday November 10, 2026 @03:07PM (#50445607)
> While this is the safest choice, it is the least helpful, I would always prefer to get something out of an archive then nothing. Damage/irregularity to an archive shouldn't prevent data inspection, just a warning and a way to fall back with caveats for what can be extracted.

I would argue the correct answer can have both.

Fail by default, fail with a clear error that says the file is damaged, then offer an explicitly opt-in path to try your best anyways, preferably one where the command line option is something like --dangerous-try-extract-anyways and will itself fail on non-broken files so it can't just be shoved in a script as a way to "make sure it works".

There are no comments on this comment yet.