summaryrefslogtreecommitdiff
path: root/src/core/cgroup-attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cgroup-attr.c')
-rw-r--r--src/core/cgroup-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup-attr.c b/src/core/cgroup-attr.c
index 2ab4d4623e..7e3e08eabb 100644
--- a/src/core/cgroup-attr.c
+++ b/src/core/cgroup-attr.c
@@ -44,7 +44,7 @@ int cgroup_attribute_apply(CGroupAttribute *a, CGroupBonding *b) {
if (r < 0)
return r;
- r = write_one_line_file(path, v ? v : a->value);
+ r = write_string_file(path, v ? v : a->value);
if (r < 0)
log_warning("Failed to write '%s' to %s: %s", v ? v : a->value, path, strerror(-r));