Re: [PATCH libvirt] Add missing virGetGroupName()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]