This is a requirement for vc_getVserverCtx, so it should be a requirement in the...
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 22 Aug 2008 21:41:22 +0000 (21:41 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 22 Aug 2008 21:41:22 +0000 (21:41 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2764 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/functions

index 2273cc4..224e440 100644 (file)
@@ -601,6 +601,8 @@ function getVserverStatus
     read _gvs_ctx <"$1"/run
     eval "$2"=\$_gvs_ctx
 
+    test "$1" = "$($_VUNAME -g --xid "$_gvs_ctx" context)" || return 1
+
     test -n "$3"     || return 0
     local _gvs_tmp
     _getProcNumberCount "$_gvs_ctx" _gvs_tmp