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:
parent
cfb571f30f
commit
4f52b822b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user