From 413014460871c8ac7c6b4d04eb4bd2ca0a8d5c54 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 25 Feb 2010 16:00:08 +0000 Subject: [PATCH 1/1] Make namespace cleanup look at whole paths, fixing guests with the same beginning in their names. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2881 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- scripts/vserver.functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/vserver.functions b/scripts/vserver.functions index 59846ab..ed487fa 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -1382,7 +1382,8 @@ function _namespaceCleanup while read -r dev path opts; do test -n "$path" || continue for i in "$root" /dev /proc; do - test "${path#$i}" != "$path" && continue 2 + path_dir="${path}/" + test "${path_dir#${i}/}" != "${path_dir}" && continue 2 done for i in "${list[@]}" /; do test "$path" = "$i" && continue 2 -- 1.8.1.5