[libvirt] [PATCH libvirt] Add missing virGetGroupName()
Eric Blake
eblake at redhat.com
Wed Jan 25 19:34:20 UTC 2012
On 01/25/2012 11:54 AM, Marc-André Lureau wrote:
> Add missing function if !HAVE_GETPWUID_R.
> ---
> src/util/util.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/src/util/util.c b/src/util/util.c
> index c00c2f9..33bcf29 100644
> --- a/src/util/util.c
> +++ b/src/util/util.c
> @@ -2471,6 +2471,15 @@ virSetUIDGID(uid_t uid ATTRIBUTE_UNUSED,
> "%s", _("virSetUIDGID is not available"));
> return -1;
> }
> +
> +char *
> +virGetGroupName(gid_t gid ATTRIBUTE_UNUSED)
> +{
> + virUtilError(VIR_ERR_INTERNAL_ERROR,
> + "%s", _("virGetGroupName is not available"));
> +
> + return NULL;
> +}
> #endif /* HAVE_GETPWUID_R */
ACK and pushed.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120125/b7d2d43f/attachment-0001.sig>
More information about the libvir-list
mailing list