Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2017 06:00:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 220668] x11/xinit
Message-ID:  <bug-220668-7141-ukS5hb6Myf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220668-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220668-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Duane <parakleta@darkreality.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to x11@FreeBSD.org:
Bug 220668: x11/xinit
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220668



--- Description ---
`/usr/local/bin/startx` does not correctly calculate the `$displayname` val=
ue
used by `xauth`.  Specifically the `xauth` man page states that same-machine
connections should use the form `$hostname/unix:$display`.

The following patch should fix the behaviour.

@@ -192,9 +193,9 @@
     # now add the same credentials to the client authority file
     # if '$displayname' already exists do not overwrite it as another
     # server man need it. Add them to the '$xserverauthfile' instead.
-    for displayname in $authdisplay $hostname$authdisplay; do
+    for displayname in $authdisplay $hostname/unix$authdisplay; do
	 authcookie=3D`xauth list "$displayname" \
-	 | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
+	     | sed -n "s|.*$displayname[[:space:]*].*[[:space:]*]||p"`
2>/dev/null;
	 if [ "z${authcookie}" =3D "z" ] ; then
	     xauth -q << EOF=20
 add $displayname . $mcookie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220668-7141-ukS5hb6Myf>