summaryrefslogtreecommitdiffstats
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-01 08:12:22 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-07-01 10:29:16 +0200
commit3daf1f913c3bcf500f2c7e2b186185090c495256 (patch)
tree8c93e9f12e0a224a569ad7f6e7219ac1355242f0 /src/shared/logs-show.c
parentunits: add IgnoreOnIsolate=yes to systemd-journald too (diff)
downloadsystemd-3daf1f913c3bcf500f2c7e2b186185090c495256.tar.xz
systemd-3daf1f913c3bcf500f2c7e2b186185090c495256.zip
journalctl: fix to show user slice
Fixes #23867.
Diffstat (limited to '')
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 1cd2835816..5e2fd580db 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)(