]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: Properly return error from virGetUserID and virGetGroupID stubs
authorPeter Krempa <pkrempa@redhat.com>
Mon, 8 Jun 2015 07:32:24 +0000 (09:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Jun 2015 07:32:24 +0000 (09:32 +0200)
commit679576cf8cc51fa71c04b9b36ce4760c0008e4cb
treecdf6f3b65e7c6d079c34ad32d84e9f7bfb58d424
parent568aba88111541447e7d7163f7683f0daf2a684a
util: Properly return error from virGetUserID and virGetGroupID stubs

The stubs for the two functions that are compiled on platforms that
don't have HAVE_GETPWUID_R and friends defined do not return error but
report an error message. The calling code then assumes that the @uid or
@gid arguments were filled, which is not the case in the stubs.
src/util/virutil.c