projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74c4bd6
)
journalctl: fix to show user slice
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 1 Jul 2022 06:12:22 +0000
(15:12 +0900)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Fri, 1 Jul 2022 08:29:16 +0000
(09:29 +0100)
Fixes #23867.
src/shared/logs-show.c
patch
|
blob
|
history
diff --git
a/src/shared/logs-show.c
b/src/shared/logs-show.c
index 1cd2835816488d0ad6658b3033c80083563c204c..5e2fd580dbb197e44ad657f8df1ba0c57c53c056 100644
(file)
--- 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)(