mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 17:18: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:
parent
76cbafcdd4
commit
b4a11ca3f2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user