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

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220668

            Bug ID: 220668
           Summary: x11/xinit
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: parakleta@darkreality.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)
          Assignee: x11@FreeBSD.org

`/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/n=
ull;
+            | sed -n "s|.*$displayname[[:space:]*].*[[:space:]*]||p"`
2>/dev/null;
         if [ "z${authcookie}" =3D "z" ] ; then
             xauth -q << EOF=20
 add $displayname . $mcookie

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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