[libvirt] [PATCH] interface: Use proper return codes in the open function