summarylogtreecommitdiffstats
path: root/fs25361.patch
blob: 28ed3ecbb8352d9ccc886cf6753ceabba4d90b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -up xorg-xinit-git/startx.cpp.orig xorg-xinit-git/startx.cpp
--- xorg-xinit-git/startx.cpp.orig	2014-07-03 06:04:55.000000000 -0600
+++ xorg-xinit-git/startx.cpp	2014-07-03 06:04:55.000000000 -0600
@@ -284,9 +284,9 @@ EOF
     XCOMM now add the same credentials to the client authority file
     XCOMM if '$displayname' already exists do not overwrite it as another
     XCOMM 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/.*$hostname\/unix$authdisplay[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
         if [ "z${authcookie}" = "z" ] ; then
             XAUTH -q << EOF 
 add $displayname . $mcookie