1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00

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.
This commit is contained in:
Lennart Poettering 2023-01-26 17:32:52 +01:00
parent 23cd1e0962
commit 1ea616372d

View File

@ -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)