callInNamespace(): call 'shift' to remove the vserver-name from $@
[util-vserver.git] / 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