1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

journal: generate a clean message when we try to write to a journal file from a different host

This commit is contained in:
Lennart Poettering 2023-01-31 13:40:23 +01:00 committed by Daan De Meyer
parent 75bf2627b0
commit 2308cf7c9c

View File

@ -515,7 +515,8 @@ static int journal_file_verify_header(JournalFile *f) {
return r;
if (!sd_id128_equal(machine_id, f->header->machine_id))
return -EHOSTDOWN;
return log_debug_errno(SYNTHETIC_ERRNO(EHOSTDOWN),
"Trying to open journal file from different host for writing, refusing.");
state = f->header->state;