17 lines
805 B
Diff
17 lines
805 B
Diff
diff --git a/startx.cpp b/startx.cpp
|
|
index fe21fb3..764f69f 100644
|
|
--- a/startx.cpp
|
|
+++ b/startx.cpp
|
|
@@ -296,9 +296,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 may 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
|