From 6dacabe5340078c4a5cea26b3143c3e5f5778c1b Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 6 Dec 2025 01:29:03 +0100 Subject: [PATCH] journalctl-show: drop redundant condition The combination of --follow and --reverse would have been rejected in parse_argv() already. --- src/journal/journalctl-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl-show.c b/src/journal/journalctl-show.c index 0fa919cfd26..08311f018d6 100644 --- a/src/journal/journalctl-show.c +++ b/src/journal/journalctl-show.c @@ -341,7 +341,7 @@ static int on_first_event(sd_event_source *s, void *userdata) { if (r < 0) return r; - if (arg_follow && !arg_reverse && !c->has_cursor && !arg_since_set) { + if (arg_follow && !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 -- 2.47.3