summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-26 17:32:52 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-27 09:41:36 +0100
commit1ea616372d5eb9b6e4f9e279ddc93be739a0bb09 (patch)
tree6bbc623af47397b3132af5637ec04c15a2a7f09d
parent23cd1e0962b050da7b917a253f414731df0ae086 (diff)
downloadsystemd-1ea616372d5eb9b6e4f9e279ddc93be739a0bb09.tar.gz
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.
-rw-r--r--src/journal/managed-journal-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/managed-journal-file.c b/src/journal/managed-journal-file.c
index 6e313f2a05..810167772a 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)