systemctl: properly handle empty control group paths in "status"
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 19:09:49 +0000 (21:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 20:46:45 +0000 (22:46 +0200)
commitb04c25f9ef6359ed0ae403bdbfe4df840aba0f58
tree4a9e1fd568891630c9e1a914e9324431b885836f
parenta79366e22a43ed81017e2d8c2426431d369f3cfa
systemctl: properly handle empty control group paths in "status"

When showing the status of the "-.slice" slice root unit (whose reported
cgroup path is ""), we suppressed the cgroup tree so far, because
skipped it for all unit with an empty cgroup path. Let's fix that, and
properly handle the empty cgroup path.
src/systemctl/systemctl.c