[libvirt] [PATCH] network: fix return value of hostsFileWrite