summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-06-06 21:55:32 +0000
committerArthur de Jong <arthur@arthurdejong.org>2008-06-06 21:55:32 +0000
commit7fa270ed068d7c18e32b122f670d31edc6578e9b (patch)
tree7b063ef02b1e3a401fdf4122503c97b6f50e2725
parent6b619dd072735840b952851cbc0f660a1ac4ab6b (diff)
use the cr_ prefix when getting a xucred struct (needed for kfreebsd)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@753 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--compat/getpeercred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/getpeercred.c b/compat/getpeercred.c
index 0de6f75..0e81dc0 100644
--- a/compat/getpeercred.c
+++ b/compat/getpeercred.c
@@ -71,8 +71,8 @@ int getpeercred(int sock,uid_t *uid,gid_t *gid,pid_t *pid)
return -1;
}
/* return the data */
- if (uid!=NULL) *uid=cred.uid;
- if (gid!=NULL) *gid=cred.gid;
+ if (uid!=NULL) *uid=cred.cr_uid;
+ if (gid!=NULL) *gid=cred.cr_gid;
if (pid!=NULL) *pid=(pid_t)-1;
return 0;
#elif defined(HAVE_GETPEERUCRED)