aboutsummaryrefslogtreecommitdiffstats
path: root/security/gnome-keyring
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2009-04-24 14:38:26 +0800
committerkwm <kwm@FreeBSD.org>2009-04-24 14:38:26 +0800
commit89cf82ad6885514f402ef2dd139fef0cfb574e23 (patch)
treeb938e4fdd8766af9b3af01e3e9978d0398963802 /security/gnome-keyring
parentaf38ccf75850cb8beb09ddd2bb120f837ad39784 (diff)
downloadfreebsd-ports-gnome-89cf82ad6885514f402ef2dd139fef0cfb574e23.tar.gz
freebsd-ports-gnome-89cf82ad6885514f402ef2dd139fef0cfb574e23.tar.zst
freebsd-ports-gnome-89cf82ad6885514f402ef2dd139fef0cfb574e23.zip
Presenting GNOME 2.26.1 for FreeBSD.
Approved by: portmgr (marcus)
Diffstat (limited to 'security/gnome-keyring')
-rw-r--r--security/gnome-keyring/Makefile3
-rw-r--r--security/gnome-keyring/files/patch-pam_gkr-pam-client.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/security/gnome-keyring/Makefile b/security/gnome-keyring/Makefile
index 660c4e7a5449..897f8bd23aa8 100644
--- a/security/gnome-keyring/Makefile
+++ b/security/gnome-keyring/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/security/gnome-keyring/Makefile,v 1.76 2009/03/15 00:23:43 marcus Exp $
+# $MCom: ports-stable/security/gnome-keyring/Makefile,v 1.3 2009/04/20 00:24:30 marcus Exp $
#
PORTNAME= gnome-keyring
PORTVERSION= 2.26.1
+PORTREVISION= 1
CATEGORIES= security gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
diff --git a/security/gnome-keyring/files/patch-pam_gkr-pam-client.c b/security/gnome-keyring/files/patch-pam_gkr-pam-client.c
new file mode 100644
index 000000000000..05a0306e6913
--- /dev/null
+++ b/security/gnome-keyring/files/patch-pam_gkr-pam-client.c
@@ -0,0 +1,18 @@
+--- pam/gkr-pam-client.c.orig 2008-10-07 12:25:23.000000000 -0400
++++ pam/gkr-pam-client.c 2008-10-07 12:38:36.000000000 -0400
+@@ -96,12 +96,12 @@ check_peer_same_uid (int sock)
+ struct xucred xuc;
+ socklen_t xuc_len = sizeof (xuc);
+
+- if (getsockopt (sock, SOL_SOCKET, LOCAL_PEERCRED, &xuc, &xuc_len) == 0 &&
+- xuc_len == sizeof (xuc)) {
++ if (getsockopt (sock, 0, LOCAL_PEERCRED, &xuc, &xuc_len) == 0 &&
++ xuc.cr_version == XUCRED_VERSION) {
+ uid = xuc.cr_uid;
+ } else {
+ syslog (GKR_LOG_ERR, "could not get gnome-keyring-daemon socket credentials, "
+- "(returned len %d/%d)\n", xuc_len, (int)sizeof (xuc));
++ "(returned version %d/%d)\n", xuc.cr_version, XUCRED_VERSION);
+ return -1;
+ }
+