commit | e8122a19c7cd8496495b1cfe8a7340781d2d63f6 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Wed Sep 21 14:15:41 2011 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Wed Sep 21 14:15:41 2011 +0400 |
tree | 2b29966197ae3b02e3d1b3d0ea411c666144d9d3 | |
parent | 76526a92902cc849d3554e4f215d76755d070689 [diff] |
vzctl set --ipadd: fix setting IP address with a netmask When netmasks were added to vzctl (as per bug #1088) this place was forgotten. Unfortunately due to 'return 0' statement in case of error from get_netaddr() this error went unnoticed. Fix the case (by removing /mask from IP address string). Fixes http://bugzilla.openvz.org/2001 http://bugzilla.openvz.org/1088 Signed-off-by: Kir Kolyshkin <kir@openvz.org>