No need to read the name again.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 23 Oct 2008 21:37:26 +0000 (21:37 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 23 Oct 2008 21:37:26 +0000 (21:37 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2795 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver.functions

index 3878446..0997c2e 100644 (file)
@@ -1461,7 +1461,7 @@ function _handleCgroup
     if test -r "$dir"/name; then
        read name < "$dir"/name
     else
-       read name < "$vdir"/name
+       name="$VSERVER_NAME"
     fi
 
     if test "$action" = "attach"; then