]> xenbits.xensource.com Git - libvirt.git/commit
util: rework error reporting in virGet(User|Group)IDByName
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Dec 2012 20:26:52 +0000 (21:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 12 Dec 2012 13:06:59 +0000 (14:06 +0100)
commit96460a19870d4442b9dae3bb928ea0cd8d455369
tree5ed2b481ed87fed27b9234cdca89be27a58eb78e
parent9cdd9ea20e89c8a7b5a67b52d22cc45b08072f65
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.
src/util/util.c