diff -ruN data.orig/usr/lib/util-vserver/functions data/usr/lib/util-vserver/functions --- data.orig/usr/lib/util-vserver/functions 2007-07-05 15:41:45 +0000 +++ data/usr/lib/util-vserver/functions 2007-07-09 14:29:25 +0000 @@ -574,7 +574,7 @@ set -- $($_GREP '^PROC:' "/proc/virtual/$1/limit" 2>/dev/null) _gp_procnr_cnt=$2 else - _gp_procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$1" | $_WC -l ) + _gp_procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP "^$1\$" | $_WC -l ) fi let _gp_procnr_cnt=_gp_procnr_cnt+0 diff -ruN data.orig/usr/lib/util-vserver/start-vservers data/usr/lib/util-vserver/start-vservers --- data.orig/usr/lib/util-vserver/start-vservers 2007-07-05 15:41:47 +0000 +++ data/usr/lib/util-vserver/start-vservers 2007-07-09 14:30:04 +0000 @@ -131,7 +131,7 @@ d=$__CONFDIR/${vservers[$i]}/apps/init f=$d/mark { test -n "$OPTION_MARK_ANY"; } || \ - { test -n "$OPTION_MARK" -a -r "$f" && grep -qx "$OPTION_MARK" "$f"; } || \ + { test -n "$OPTION_MARK" -a -r "$f" && grep -q "^$OPTION_MARK\$" "$f"; } || \ { test -z "$OPTION_MARK" && test ! -e "$f"; } || \ unset vservers[$i] done