chiark / gitweb /
cg_path_get_user_unit(): Did not correctly parse user-unit templates.
authorLuke Shumaker <lukeshu@sbcglobal.net>
Wed, 4 Feb 2015 01:07:37 +0000 (20:07 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Feb 2015 01:16:33 +0000 (02:16 +0100)
commit320814811417146cfa1e416f69f1101eed630c36
tree2547bffbd141320cd081a133a128d8b27916b7ac
parent5e07a79e84ab8b045b9df1a2719f14fc84471a1d
cg_path_get_user_unit(): Did not correctly parse user-unit templates.

It ran either skip_session() or skip_user_manager(), then ran skip_slices()
iff skip_session() ran.  It needs to run skip_slices() in either case.

Included is a test case demonstrating why.
src/shared/cgroup-util.c
src/test/test-cgroup-util.c