journald: don't try to roatet corrupted files when we open read-only anyway
This commit is contained in:
parent
5e62067d08
commit
27d1ae066c
|
@ -1918,7 +1918,7 @@ static int system_journal_open(Server *s) {
|
||||||
* if it already exists, so that we can flush
|
* if it already exists, so that we can flush
|
||||||
* it into the system journal */
|
* it into the system journal */
|
||||||
|
|
||||||
r = journal_file_open_reliably(fn, O_RDWR, 0640, NULL, &s->runtime_journal);
|
r = journal_file_open(fn, O_RDWR, 0640, NULL, &s->runtime_journal);
|
||||||
free(fn);
|
free(fn);
|
||||||
|
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|
Loading…
Reference in a new issue