]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: clean up skip_{slices,session,user_manager}
authorMike Yuan <me@yhndnzj.com>
Tue, 27 May 2025 16:32:44 +0000 (18:32 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 5 Jul 2025 20:26:23 +0000 (22:26 +0200)
commitd33104eba24bd72bcdccf8dbe0a4ec837ca03903
tree8ebc6ef0f7f055396045ca008e72ed34ffd44663
parent68c703872cf4816d6ea0f54745fa9516616a85f3
cgroup-util: clean up skip_{slices,session,user_manager}

Let's avoid obscure memcmp()s in skip_* and instead use
strndupa() to extract the bits we care and call usual
string routines on it.
src/basic/cgroup-util.c
src/basic/cgroup-util.h