From: Samanta Navarro Date: Wed, 4 Nov 2020 11:33:00 +0000 (+0000) Subject: whereis: support zst compressed man pages X-Git-Tag: v2.37-rc1~396^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6065250a4d0e20aac3dcb19ec6aa4f1ba0811fef;p=thirdparty%2Futil-linux.git whereis: support zst compressed man pages Add zst as extension for manual pages. Current version of man-db supports zst extension out of the box. Signed-off-by: Samanta Navarro --- diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index bc53a984a0..0247dbec77 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -406,6 +406,8 @@ static int filename_equal(const char *cp, const char *dp) i -= 3; else if (i > 3 && !strcmp(dp + i - 4, ".bz2")) i -= 4; + else if (i > 3 && !strcmp(dp + i - 4, ".zst")) + i -= 4; while (*cp && *dp && *cp == *dp) cp++, dp++, i--; if (*cp == 0 && *dp == 0)