chiark / gitweb /
Revert "bus-proxyd: improve compatibility with dbus-1"
[elogind.git] / src / journal / journalctl.c
index feb53bd203a3fc55194fa6fdd9e79b3dc7f7c79f..328e40b416053d04621dfa575ce7b85ca33902e2 100644 (file)
@@ -837,9 +837,10 @@ static int list_boots(sd_journal *j) {
         if (r < 0)
                 return r;
 
+        pager_open_if_enabled();
+
         SD_JOURNAL_FOREACH_UNIQUE(j, data, length) {
-                if (length < strlen("_BOOT_ID="))
-                        continue;
+                assert(startswith(data, "_BOOT_ID="));
 
                 if (!GREEDY_REALLOC(all_ids, allocated, count + 1))
                         return log_oom();