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 <raito@lix.systems>
This commit is contained in:
Raito Bezarius
2026-01-04 18:23:32 +00:00
parent 63871751ce
commit 5ae8f62146
+1 -1
View File
@@ -266,7 +266,7 @@ CgroupAvailableFeatureSet detectAvailableCgroupFeatures()
static std::vector<std::string> readControllers(const std::filesystem::path & cgroupPath)
{
return tokenizeString<std::vector<std::string>>(
readFile(cgroupPath / "cgroup.controllers"), " "
trim(readFile(cgroupPath / "cgroup.controllers")), " "
);
}