From b4a11ca3f2f9a7c67a5a86e1ab02540f24c09bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 17 Jul 2020 21:51:40 +0200 Subject: [PATCH] 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. --- src/journal/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,