From: Yu Watanabe Date: Fri, 1 Jul 2022 06:12:22 +0000 (+0900) Subject: journalctl: fix to show user slice X-Git-Tag: v252-rc1~749 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3daf1f913c3bcf500f2c7e2b186185090c495256;p=thirdparty%2Fsystemd.git journalctl: fix to show user slice Fixes #23867. --- diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index 1cd28358164..5e2fd580dbb 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -1494,7 +1494,7 @@ int add_matches_for_user_unit(sd_journal *j, const char *unit, uid_t uid) { if (r == 0 && endswith(unit, ".slice")) { const char *m5; - m5 = strjoina("_SYSTEMD_SLICE=", unit); + m5 = strjoina("_SYSTEMD_USER_SLICE=", unit); /* Show all messages belonging to a slice */ (void)(