Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 16:16:37 +0200
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/131120: xauth failes when using libX11/libxcb
Message-ID:  <E1LSXh7-0000Ro-76@bagel.cs.huji.ac.il>
Resent-Message-ID: <200901291420.n0TEK3Kt041046@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131120
>Category:       ports
>Synopsis:       xauth failes when using libX11/libxcb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 29 14:20:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Danny Braniss
>Release:        FreeBSD 7.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD bagel 7.1-STABLE FreeBSD 7.1-STABLE #1: Mon Jan 5 14:30:14 IST 2009 danny@sunfire:/r+d/obj/sunfire/i386/r+d/7/sys/HUJI i386


	
>Description:
	after compiling newer(?) libX11/libxcb, there is a bug in
	src/xcb_auth.c that prevents authorization cookies to
	work correctly. See
	     http://bugs.freedesktop.org/show_bug.cgi?id=14202
>How-To-Repeat:
>Fix:
	copy patch to /usr/ports/x11/libxcb/files/patch-src-xcb_auth.c

--- src/xcb_auth.c.orig 2009-01-29 15:59:12.000000000 +0200
+++ src/xcb_auth.c      2009-01-29 15:57:14.045667000 +0200
@@ -251,7 +251,12 @@
 
     info->namelen = memdup(&info->name, authptr->name, authptr->name_length);
     if(info->namelen)
+    {
+       if (getsockname(fd, sockname, &socknamelen) == -1)
+            ret = 0;
+       else
        ret = compute_auth(info, authptr, sockname);
+    }
     if(!ret)
     {
        free(info->name);


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1LSXh7-0000Ro-76>