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:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user