]> git.ipfire.org Git - thirdparty/libvirt.git/commit
openvz: Handle getline failures in openvzReadConfigParam properly
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 27 May 2011 10:35:50 +0000 (12:35 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 31 May 2011 17:38:08 +0000 (19:38 +0200)
commit4b15aad0d6e9dfaa0efe57100be354d2fe8f95e3
treec760f095345ecc91da633064b28e4d4d397db93a
parentad962bcdaaad9ee8f9a6a8d898eb644b494dbcc4
openvz: Handle getline failures in openvzReadConfigParam properly

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 distinguishes EOF from other getline
failures.
src/openvz/openvz_conf.c