[libvirt] [PATCH] Add compat function for geteuid()

Eric Blake eblake at redhat.com
Tue Mar 15 14:04:20 UTC 2011


On 03/15/2011 06:32 AM, Daniel P. Berrange wrote:
> * configure.ac: Check for geteuid()
> * src/util/util.h: Compat for geteuid()
> ---
>  configure.ac    |    2 +-
>  src/util/util.h |    4 ++++
>  2 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index a58ee4e..e2b2b24 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -120,7 +120,7 @@ AC_MSG_RESULT([$have_cpuid])
>  dnl Availability of various common functions (non-fatal if missing),
>  dnl and various less common threadsafe functions
>  AC_CHECK_FUNCS_ONCE([cfmakeraw regexec sched_getaffinity getuid getgid \
> - initgroups posix_fallocate mmap kill \
> + geteuid initgroups posix_fallocate mmap kill \
>   getmntent_r getgrnam_r getpwuid_r])

ACK; and this is one that gnulib doesn't provide for us, so your
implementation looks as good as any for mingw.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110315/8116e512/attachment-0001.sig>


More information about the libvir-list mailing list