nss-pam-ldapd branch master updated. 0.9.12-7-ge9662f1
[Date Prev][
Date Next]
[Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.12-7-ge9662f1
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org, nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.12-7-ge9662f1
- Date: Sat, 17 Jun 2023 22:24:03 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via e9662f13ac7a2a5d0e3eb8864dc7cf2a9ceb0a79 (commit)
from 2f6e65ab384917a9b2ee4b25a172acc107a640b3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=e9662f13ac7a2a5d0e3eb8864dc7cf2a9ceb0a79
commit e9662f13ac7a2a5d0e3eb8864dc7cf2a9ceb0a79
Author: Brett Lymn <blymn@internode.on.net>
Date: Tue May 30 07:52:10 2023 +0930
Fix compilation issues on NetBSD
Fixes da63099
diff --git a/compat/getpeercred.c b/compat/getpeercred.c
index 4b3f781..adb9f5f 100644
--- a/compat/getpeercred.c
+++ b/compat/getpeercred.c
@@ -101,14 +101,9 @@ int getpeercred(int sock, uid_t *uid, gid_t *gid, pid_t
*pid)
if (uid == NULL)
uid = &tuid;
if (gid == NULL)
- gid = &tguid;
+ gid = &tgid;
if (getpeereid(sock, uid, gid))
return -1;
- /* return the data */
- if (uid != NULL)
- *uid = cred.uid;
- if (gid != NULL)
- *gid = cred.gid;
if (pid != NULL)
*pid = -1; /* we return a -1 pid because we have no usable pid */
return 0;
-----------------------------------------------------------------------
Summary of changes:
compat/getpeercred.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
hooks/post-receive
--
nss-pam-ldapd
- nss-pam-ldapd branch master updated. 0.9.12-7-ge9662f1,
Commits of the nss-pam-ldapd project