On Sun, Apr 8, 2018 at 2:55 PM, Marius Spix <marius.s...@web.de> wrote:
> What is in the case that the suffix is not 3 characters long, e. g.
> ".tz" or ".tbz2"?

That is already handled by the find_compression_suffix call. It sets
"len" to the length not including that trailing suffix. What we're
talking about here is whether to remove even more (the ".tar"), that
was just before that trailing suffix. E.g., given a.tar.gz, we want to
return "a". But find_compression_suffix declares that it has found a
suffix also for ".tar" and composite ones like ".tgz", and for those,
it seems wrong to strip any additional (prior) ".tar".

Reply via email to