openvz: Handle getline failures in openvzReadConfigParam properly
The regression fix in 3aab7f2d 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.
Showing
想要评论请 注册 或 登录