diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-02 09:16:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-05-02 12:17:41 +0200 |
commit | a3b076f641fab2989745ee057e3576f970e0eff6 (patch) | |
tree | 61bbf2c643b48d9a71a306e91ac91eabdd66da8a /src/journal-remote | |
parent | ab13274a19ee310ed8569612a862b977d054ed6c (diff) | |
download | systemd-a3b076f641fab2989745ee057e3576f970e0eff6.tar.gz |
tree-wide: Handle EADDRNOTAVAIL as journal corruption
Journal corruption is not only indicated by EBADMSG but also by
EADDRNOTAVAIL so treat that as corruption in a few more cases.
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/journal-remote-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-parse.c b/src/journal-remote/journal-remote-parse.c index 27ab5e5ac6..26e2009e14 100644 --- a/src/journal-remote/journal-remote-parse.c +++ b/src/journal-remote/journal-remote-parse.c @@ -73,7 +73,7 @@ int process_source(RemoteSource *source, JournalFileFlags file_flags) { &source->importer.ts, &source->importer.boot_id, file_flags); - if (r == -EBADMSG) { + if (IN_SET(r, -EBADMSG, -EADDRNOTAVAIL)) { log_warning_errno(r, "Entry is invalid, ignoring."); r = 0; } else if (r < 0) |