From: Michal Sekletar Date: Wed, 3 Feb 2016 10:22:52 +0000 (+0100) Subject: journalctl: add match for the current boot when called with devpath X-Git-Tag: v229~44^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=485fd9a7b9d59b9f2302a873f7ee5ccac256dd93;p=thirdparty%2Fsystemd.git journalctl: add match for the current boot when called with devpath --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index cf359d20ca0..bdfe7e8750e 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -218,6 +218,10 @@ static int add_matches_for_device(sd_journal *j, const char *devpath) { d = udev_device_get_parent(d); } + r = add_match_this_boot(j, arg_machine); + if (r < 0) + return log_error_errno(r, "Failed to add match for the current boot: %m"); + return 0; }