From 17ff67ea057bc6e8bcd831341ee243348a9ee57d Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 17 Feb 2012 12:22:08 +0100 Subject: [PATCH] Create subsys array correctly --- scripts/vserver.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vserver.functions b/scripts/vserver.functions index f528d30..e00ce74 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -1478,7 +1478,7 @@ function _generateCgroupOptions if test -n "$file"; then _readFileToArray CGROUP_SUBSYS "$file" else - CGROUP_SUBSYS=( $($_AWK '/^#/ { next; } $1 == "ns" { next; } $4 != "0" { printf "%s%s", s, $1; s=","; }' /proc/cgroups) ) + CGROUP_SUBSYS=( $($_AWK '/^#/ { next; } $1 == "ns" { next; } $4 != "0" { print $1; }' /proc/cgroups) ) fi findFile file "$__CONFDIR/.defaults/cgroup/mnt" "" if test -n "$file"; then -- 1.8.1.5