]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl-show: drop redundant condition 40136/head
authorMike Yuan <me@yhndnzj.com>
Sat, 6 Dec 2025 00:29:03 +0000 (01:29 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 18 Dec 2025 16:37:26 +0000 (17:37 +0100)
The combination of --follow and --reverse would have been
rejected in parse_argv() already.

src/journal/journalctl-show.c

index 0fa919cfd26e0998fbd2209d9bf5bf58b3c1f9a1..08311f018d6f4b68d456ea9916eac01e22aa8442 100644 (file)
@@ -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