mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
journald: don't choke on journal files with no cutoff date
This commit is contained in:
parent
57fb9fb56d
commit
9f8d29834b
4
TODO
4
TODO
@ -40,6 +40,10 @@ Features:
|
||||
|
||||
* syscall filter: add knowledge about compat syscalls
|
||||
|
||||
* syscall filter: don't enforce no new privs?
|
||||
|
||||
* syscall filter: option to return EPERM rather than SIGSYS?
|
||||
|
||||
* logind: wakelock/opportunistic suspend support
|
||||
|
||||
* switch-root: sockets need relabelling
|
||||
|
@ -1950,6 +1950,8 @@ _public_ int sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from,
|
||||
usec_t fr, t;
|
||||
|
||||
r = journal_file_get_cutoff_realtime_usec(f, &fr, &t);
|
||||
if (r == -ENOENT)
|
||||
continue;
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
@ -1987,6 +1989,8 @@ _public_ int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, sd_id128_t boot
|
||||
usec_t fr, t;
|
||||
|
||||
r = journal_file_get_cutoff_monotonic_usec(f, boot_id, &fr, &t);
|
||||
if (r == -ENOENT)
|
||||
continue;
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user