From 08d518b7fe8f4eade97a50d41859da841a04658a Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 15 Mar 2021 16:58:52 -0500 Subject: rc_cgroup.sh: do not add newline when writing group2 values Fixes: #407 --- sh/rc-cgroup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh index 6ad746b4..fafc3b37 100644 --- a/sh/rc-cgroup.sh +++ b/sh/rc-cgroup.sh @@ -200,7 +200,7 @@ cgroup2_set_limits() [ -z "${value}" ] && continue [ ! -f "${rc_cgroup_path}/${key}" ] && continue veinfo "${RC_SVCNAME}: cgroups: setting ${key} to ${value}" - printf "%s\n" "${value}" > "${rc_cgroup_path}/${key}" + printf "%s" "${value}" > "${rc_cgroup_path}/${key}" done return 0 } -- cgit v1.2.3