mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-25 13:50:12 +03:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user