From: Frantisek Sumsal Date: Mon, 14 Mar 2022 17:43:03 +0000 (+0100) Subject: journal: make --reverse affect --list-boots X-Git-Tag: v251-rc1~146^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22739%2Fhead;p=thirdparty%2Fsystemd.git journal: make --reverse affect --list-boots Fixes: #16274 --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 55c48eded58..63334c0ea4b 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1471,6 +1471,9 @@ static int list_boots(sd_journal *j) { if (r < 0) return log_error_errno(r, "Failed to set JSON field name of column 0: %m"); + (void) table_set_sort(table, (size_t) 0); + (void) table_set_reverse(table, 0, arg_reverse); + i = 0; LIST_FOREACH(boot_list, id, all_ids) { r = table_add_many(table,