journalctl: use pager for --list-boots
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Oct 2014 23:52:31 +0000 (19:52 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Oct 2014 03:16:53 +0000 (23:16 -0400)
src/journal/journalctl.c

index 7f4bc32..328e40b 100644 (file)
@@ -837,6 +837,8 @@ static int list_boots(sd_journal *j) {
         if (r < 0)
                 return r;
 
+        pager_open_if_enabled();
+
         SD_JOURNAL_FOREACH_UNIQUE(j, data, length) {
                 assert(startswith(data, "_BOOT_ID="));