]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix getpeereid() compilation on Solaris
authorCasper Dik <casper.dik@oracle.com>
Fri, 15 Mar 2013 00:13:58 +0000 (01:13 +0100)
committerGuillem Jover <guillem@hadrons.org>
Mon, 27 May 2013 02:05:17 +0000 (04:05 +0200)
commita4812cdf240fac5d0461288094cc94e03e030272
treeb310eda22fae439920b0106d91cad74e648423f2
parentd3a09e1cf4daa6f8a2eededa55ff4c812e11e858
Fix getpeereid() compilation on Solaris

The code in getpeereid() is unlikely to compile as ucred_t is an opaque
struct (ucred_t * works but ucred_t does not). Either you need to give
a pointer initialized to NULL and getpeerucred() allocates a new ucred
or you call it with an allocated ucred as in this patch.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/getpeereid.c