From 5ae8f621467d8ce43efbcfa41c9e3c155ba4d970 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Fri, 12 Dec 2025 03:56:31 +0100 Subject: [PATCH] lix/libutil/cgroup: remove trailing \n in cgroup.controllers Otherwise, this result in debug traces with a \n cutting the list of controllers. Change-Id: I8aba6379d335c4edab9d9ddb3fb411813d8dc426 Signed-off-by: Raito Bezarius --- lix/libutil/cgroup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libutil/cgroup.cc b/lix/libutil/cgroup.cc index 543dc112e..fdea3929c 100644 --- a/lix/libutil/cgroup.cc +++ b/lix/libutil/cgroup.cc @@ -266,7 +266,7 @@ CgroupAvailableFeatureSet detectAvailableCgroupFeatures() static std::vector readControllers(const std::filesystem::path & cgroupPath) { return tokenizeString>( - readFile(cgroupPath / "cgroup.controllers"), " " + trim(readFile(cgroupPath / "cgroup.controllers")), " " ); }