callInNamespace(): call 'shift' to remove the vserver-name from $@
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 10 Mar 2004 04:55:25 +0000 (04:55 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 10 Mar 2004 04:55:25 +0000 (04:55 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1202 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 6c33047..a2ad7f3 100644 (file)
@@ -368,6 +368,7 @@ function callInNamespace
     isAvoidNamespace "$1" || \
     ctx=$( $_VSERVER_INFO "$1" CONTEXT t ) || ctx=
 
+    shift
     if test "$ctx"; then
        $_VNAMESPACE --enter "$ctx" -- "$@"
     else