chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: apply seek check before resizing window, and refresh stat data if necessary
[elogind.git]
/
src
/
journal
/
journald.c
diff --git
a/src/journal/journald.c
b/src/journal/journald.c
index 1faf570161a21457805e5836bb1590f07f0cb850..b42be8d7ad2788ef55d409fdb326b1c5b5dd8036 100644
(file)
--- a/
src/journal/journald.c
+++ b/
src/journal/journald.c
@@
-391,7
+391,9
@@
static char *shortened_cgroup_path(pid_t pid) {
return NULL;
}
- if (streq(init_path, "/"))
+ if (endswith(init_path, "/system"))
+ init_path[strlen(init_path) - 7] = 0;
+ else if (streq(init_path, "/"))
init_path[0] = 0;
if (startswith(process_path, init_path)) {