diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-03 23:41:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-03 23:41:55 +0100 |
commit | bad75c274a488715a845ff8e5ec3140036929e94 (patch) | |
tree | 0a8213ec5360caf95549b00a749590ccf8e5a68d /src/journal | |
parent | bda061759c3baef4383a2ec0bf1b538905cb30b0 (diff) |
journald: fix _SYSTEMD_CGROUP= values
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index 1faf570161..b42be8d7ad 100644 --- 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)) { |