journal: generate a clean message when we try to write to a journal file from a different host
This commit is contained in:
committed by
Daan De Meyer
parent
75bf2627b0
commit
2308cf7c9c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user