]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: Don't discard -b arg when followed by -e
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Jan 2022 13:26:25 +0000 (13:26 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Jan 2022 16:10:22 +0000 (01:10 +0900)
Allowing -e to be used to view the last logs of a previous boot seems
like a useful feature so let's not discard -b options anymore when
followed by -e.

Fixes #22107

src/journal/journalctl.c

index d564d542d48012a609a85484b2d589c1b9ae8ee0..3c4a7c0a7a5b6d32b7b3a529a4fb79ebe7cc2925 100644 (file)
@@ -552,8 +552,6 @@ static int parse_argv(int argc, char *argv[]) {
                                 arg_lines = 1000;
 
                         arg_boot = true;
-                        arg_boot_id = SD_ID128_NULL;
-                        arg_boot_offset = 0;
 
                         break;