From: Zbigniew Jędrzejewski-Szmek Date: Fri, 17 Jul 2020 19:51:40 +0000 (+0200) Subject: journal: use -EPROTONOSUPPORT for unknown compression X-Git-Tag: v246-rc2~23^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4a11ca3f2f9a7c67a5a86e1ab02540f24c09bb9;p=thirdparty%2Fsystemd.git journal: use -EPROTONOSUPPORT for unknown compression We might add more compression types in the future, and we should treat that as unsupported, and not a format error. --- diff --git a/src/journal/compress.c b/src/journal/compress.c index e6ce64fc652..1b0c01a8fb3 100644 --- a/src/journal/compress.c +++ b/src/journal/compress.c @@ -326,7 +326,7 @@ int decompress_blob( src, src_size, dst, dst_alloc_size, dst_size, dst_max); else - return -EBADMSG; + return -EPROTONOSUPPORT; } int decompress_startswith_xz(const void *src, uint64_t src_size,