archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xorg-xinit / trunk / fs25361.patch
blob046968576e513ceaed58b613e9e1bb4473785c14
1 Common subdirectories: xinit.orig/privileged_startx and xinit/privileged_startx
2 diff -u xinit.orig/startx.cpp xinit/startx.cpp
3 --- xinit.orig/startx.cpp 2011-08-02 18:26:57.161711018 +0400
4 +++ xinit/startx.cpp 2011-08-02 19:06:39.348816866 +0400
5 @@ -290,9 +290,9 @@
6 XCOMM now add the same credentials to the client authority file
7 XCOMM if '$displayname' already exists do not overwrite it as another
8 XCOMM server may need it. Add them to the '$xserverauthfile' instead.
9 - for displayname in $authdisplay $hostname$authdisplay; do
10 + for displayname in $authdisplay $hostname/unix$authdisplay; do
11 authcookie=`XAUTH list "$displayname" @@
12 - | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
13 + | sed -n "s/.*$hostname\/unix$authdisplay[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
14 if [ "z${authcookie}" = "z" ] ; then
15 XAUTH -q << EOF
16 add $displayname . $mcookie