util: rework error reporting in virGet(User|Group)IDByName
This patch gets rid of the undeterministic error reporting code done on return values of get(pw|gr)nam_r. With this patch, if the group record is not returned by the corresponding function this error is not considered fatal even if errno != 0. The error is logged in such case.
Showing
想要评论请 注册 或 登录