1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

journal: explain the error when we find a non-DATA object that is compressed

Only objects of type DATA may be compressed, generate a message about
that, like we do for all other errros.
This commit is contained in:
Lennart Poettering 2015-07-24 02:02:07 +02:00
parent 8dc37a8525
commit bca9e39dfa

View File

@ -123,8 +123,10 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o
* other objects. */
if ((o->object.flags & OBJECT_COMPRESSED_XZ) &&
o->object.type != OBJECT_DATA)
o->object.type != OBJECT_DATA) {
error(offset, "Found compressed object that isn't of type DATA, which is not allowed.");
return -EBADMSG;
}
switch (o->object.type) {