fix SO_PEERCRED fallout

This commit is contained in:
naddy 2010-07-03 16:47:44 +00:00
parent 78ed048cb3
commit 23da697f7f

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-egg_egg-unix-credentials_c,v 1.1 2010/07/03 16:47:44 naddy Exp $
--- egg/egg-unix-credentials.c.orig Sat Jul 3 10:38:55 2010
+++ egg/egg-unix-credentials.c Sat Jul 3 10:39:12 2010
@@ -107,7 +107,7 @@ egg_unix_credentials_read (int sock, pid_t *pid, uid_t
{
#ifdef SO_PEERCRED
- struct ucred cr;
+ struct sockpeercred cr;
socklen_t cr_len = sizeof (cr);
if (getsockopt (sock, SOL_SOCKET, SO_PEERCRED, &cr, &cr_len) == 0 &&