aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-04-05 02:49:26 +0800
committerrnoland <rnoland@FreeBSD.org>2009-04-05 02:49:26 +0800
commit8da075441dab6f7f9a198e26715491562fd181ce (patch)
tree65ba67318a88881769d624e76c970cdd7c72d9fc
parentf9e57960dfa3914db25ede9bcb78468ce40e4a60 (diff)
downloadfreebsd-ports-gnome-8da075441dab6f7f9a198e26715491562fd181ce.tar.gz
freebsd-ports-gnome-8da075441dab6f7f9a198e26715491562fd181ce.tar.zst
freebsd-ports-gnome-8da075441dab6f7f9a198e26715491562fd181ce.zip
Add patch to fix xauth.
PR: 131120 Submitted by: Danny Braniss <danny@cs.huji.ac.il> Approved by: Ashish SHUKLA <wahjava@gmail.com> (maintainer)
-rw-r--r--x11/libxcb/Makefile1
-rw-r--r--x11/libxcb/files/patch-src-xcb_auth.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/x11/libxcb/Makefile b/x11/libxcb/Makefile
index 18bb2d7af276..6bdc53575fae 100644
--- a/x11/libxcb/Makefile
+++ b/x11/libxcb/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libxcb
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= x11 python
#MASTER_SITES= XORG/current/src/extras
MASTER_SITES= http://xcb.freedesktop.org/dist/
diff --git a/x11/libxcb/files/patch-src-xcb_auth.c b/x11/libxcb/files/patch-src-xcb_auth.c
new file mode 100644
index 000000000000..924d616c4774
--- /dev/null
+++ b/x11/libxcb/files/patch-src-xcb_auth.c
@@ -0,0 +1,16 @@
+--- src/xcb_auth.c.orig 2008-08-28 06:49:21.000000000 -0500
++++ src/xcb_auth.c 2009-04-04 13:37:45.000000000 -0500
+@@ -251,7 +251,12 @@
+
+ info->namelen = memdup(&info->name, authptr->name, authptr->name_length);
+ if(info->namelen)
+- ret = compute_auth(info, authptr, sockname);
++ {
++ if (getsockname(fd, sockname, &socknamelen) == -1)
++ ret = 0;
++ else
++ ret = compute_auth(info, authptr, sockname);
++ }
+ if(!ret)
+ {
+ free(info->name);