1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

journalctl: continue operation, even if we run into an invalid file

This commit is contained in:
Lennart Poettering 2015-11-02 23:13:01 +01:00
parent cfb571f30f
commit 4f52b822b0

View File

@ -1729,15 +1729,12 @@ static int access_check(sd_journal *j) {
SET_FOREACH(code, j->errors, it) {
int err;
err = -PTR_TO_INT(code);
assert(err > 0);
err = abs(PTR_TO_INT(code));
if (err == EACCES)
continue;
log_warning_errno(err, "Error was encountered while opening journal files: %m");
if (r == 0)
r = -err;
log_warning_errno(err, "An error was encountered while opening journal files, ignoring: %m");
}
return r;