[libvirt] [PATCH] openvz: Handle getline failures in openvzReadConfigParam properly

Eric Blake eblake at redhat.com
Tue May 31 17:19:00 UTC 2011


On 05/27/2011 04:37 AM, Matthias Bolte wrote:
> The regression fix in 3aab7f2d6b068f0 altered the error handling.
> getline returns -1 on failure to read a line (including EOF). The
> original openvzReadConfigParam function using openvz_readline only
> treated EOF as not-found. The current getline version treats all
> getline failures as not-found.
> 
> This patch fixes this and distinguished EOF from other getline
> failures.
> ---
>  src/openvz/openvz_conf.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110531/fe59766b/attachment-0001.sig>


More information about the libvir-list mailing list