From: Lennart Poettering Date: Thu, 26 Jan 2023 16:32:52 +0000 (+0100) Subject: journald: don't check for -EREMCHG on open, given that open doesn't generate it X-Git-Tag: v253-rc2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ea616372d5eb9b6e4f9e279ddc93be739a0bb09;p=thirdparty%2Fsystemd.git journald: don't check for -EREMCHG on open, given that open doesn't generate it We generate EREMCHG when writing entries, but not during open, hence don't bother with checking for it. --- diff --git a/src/journal/managed-journal-file.c b/src/journal/managed-journal-file.c index 6e313f2a054..810167772ad 100644 --- a/src/journal/managed-journal-file.c +++ b/src/journal/managed-journal-file.c @@ -524,8 +524,7 @@ int managed_journal_file_open_reliably( -ESHUTDOWN, /* Already archived */ -EIO, /* IO error, including SIGBUS on mmap */ -EIDRM, /* File has been deleted */ - -ETXTBSY, /* File is from the future */ - -EREMCHG)) /* Clock rolled back */ + -ETXTBSY)) /* File is from the future */ return r; if ((open_flags & O_ACCMODE) == O_RDONLY)