1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

journalctl: fix to show user slice

Fixes #23867.
This commit is contained in:
Yu Watanabe 2022-07-01 15:12:22 +09:00 committed by Luca Boccassi
parent 74c4bd6b1a
commit 3daf1f913c

View File

@ -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)(