Make get_remote_uid() work on BSD

I've attached a patch that will make file URIs work on operating systems
that provide the getpeereid() function call to check the user ID of the
peer connected to a UNIX domain socket.
This commit is contained in:
Andreas Vögele
2010-06-30 21:42:01 +02:00
committed by Max Kellermann
parent 0a0c78674f
commit 34415bf0b6
3 changed files with 9 additions and 1 deletions

View File

@@ -177,6 +177,7 @@ AC_ARG_ENABLE(un,
if test x$enable_un = xyes; then
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
STRUCT_UCRED
AC_CHECK_FUNCS(getpeereid)
fi