vps_save_config(): multiple fixes

1. Make sure we always return proper error code (VZ_CONFIG_SAVE_ERROR)
   because it is used as an exit code from vzctl set. This is an
   addition to commit 51e5e8708.

2. Fix memory leak (tmp_old_p)

3. Tell a user we have saved config file, or
   we are not going to save it (no changes).

Side effect of this is they make 'vzctl create' and 'vzcfgvalidate -r'
a bit more more talkative. Also it prevents a misleading "Configuration saved"
message when using a command like "vzctl set NNN --save" (i.e. w/o any parameters).

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2 files changed