1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

journald-server: r should be checked after journal_file_open_reliably

This commit is contained in:
Lukas Nykryn 2013-07-09 15:45:37 +02:00 committed by Lennart Poettering
parent 47a1454f70
commit 433dd10044

View File

@ -910,11 +910,12 @@ static int system_journal_open(Server *s) {
if (r >= 0)
server_fix_perms(s, s->system_journal, 0);
} else if (r < 0) {
if (r != -ENOENT && r != -EROFS)
log_warning("Failed to open system journal: %s", strerror(-r));
else if (r < 0) {
if (r != -ENOENT && r != -EROFS)
log_warning("Failed to open system journal: %s", strerror(-r));
r = 0;
r = 0;
}
}
if (!s->runtime_journal &&