--- config-qos.orig 2006-10-17 20:52:41 +0400 +++ config-qos.orig 2006-10-17 20:53:37 +0400 @@ -61,7 +61,7 @@ # for current profile and host. If the full name and the best # match are equal, go on. [ -d $cdir ] || continue - local base=${d%#*} + local base=${cdir%#*} base=${base%@*} local bestmatch=`profiled_filename $base` [ "$bestmatch" = "$cdir" ] || continue