vzctl set --hostname: fix adding netmask to /etc/hosts

After introducing netmask support, we forgot to strip off the netmask
from a few places. This is another one of such places. I sincerely
hope it's the last one.

http://bugzilla.openvz.org/2014

Reported-by: William Taylor <williamt@sonic.net>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed