journalctl-show: check Context.has_cursor rather than arg_*
This commit is contained in:
@@ -313,7 +313,7 @@ static int on_first_event(sd_event_source *s, void *userdata) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (arg_follow && !arg_reverse && !arg_cursor && !arg_after_cursor && !arg_cursor_file && !arg_since_set) {
|
||||
if (arg_follow && !arg_reverse && !c->has_cursor && !arg_since_set) {
|
||||
r = sd_journal_get_cursor(c->journal, /* ret_cursor= */ NULL);
|
||||
if (r == -EADDRNOTAVAIL) {
|
||||
/* If we shall operate in --follow mode, and we are unable to get a cursor after
|
||||
|
||||
Reference in New Issue
Block a user