]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-show: rework cgroup tree display to operate by fd only 29720/head
authorLennart Poettering <lennart@poettering.net>
Wed, 25 Oct 2023 21:05:24 +0000 (23:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Oct 2023 07:28:29 +0000 (09:28 +0200)
commit001feb125b7205547b705d0a00bd7a1a3fee5910
tree332773a81b2b8fd320a78a14b941881337931bc7
parent6414203cfc68bb4e0cf7f139e48de83e91f8aec1
cgroup-show: rework cgroup tree display to operate by fd only

This restores display of the "delegate" flag of a cgroup. Previously we
erroneously passed a full fs path where a cgroup path was expected (the
difference being the /sys/fs/cgroup/ prefix), which meant we never read
the xattr properly. Let's fix that by simply operating by fd on the
cgroup and using it for all operations.
src/shared/cgroup-show.c