[Bug 220668] x11/xinit

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 12 06:00:23 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220668

            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 at FreeBSD.org
          Reporter: parakleta at darkreality.org
             Flags: maintainer-feedback?(x11 at FreeBSD.org)
          Assignee: x11 at FreeBSD.org

`/usr/local/bin/startx` does not correctly calculate the `$displayname` value
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=`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}" = "z" ] ; then
             xauth -q << EOF 
 add $displayname . $mcookie

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


More information about the freebsd-x11 mailing list