summaryrefslogtreecommitdiffstats
path: root/abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-30 01:45:54 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-30 01:45:54 (GMT)
commit44e72c29d1a1a245dac19ccf3bec57b36475d597 (patch)
tree0dbc9b84bfadc9a60ad319d325f5f24e94d96f76 /abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff
parent3ed3714e1cfc09e6b93417a1f28ddf89f73d029d (diff)
downloadlinhes_pkgbuild-44e72c29d1a1a245dac19ccf3bec57b36475d597.zip
linhes_pkgbuild-44e72c29d1a1a245dac19ccf3bec57b36475d597.tar.gz
linhes_pkgbuild-44e72c29d1a1a245dac19ccf3bec57b36475d597.tar.bz2
xorg-xinit: upgrade
Diffstat (limited to 'abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff')
-rw-r--r--abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff b/abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff
new file mode 100644
index 0000000..99e8a67
--- /dev/null
+++ b/abs/core/xorg-xinit/06_move_serverauthfile_into_tmp.diff
@@ -0,0 +1,20 @@
+Move startx auth files in /tmp so they are removed on reboot.
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736
+The trap patch didn't seem to work on reboot.
+---
+ startx.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: xinit/startx.cpp
+===================================================================
+--- xinit.orig/startx.cpp
++++ xinit/startx.cpp
+@@ -273,7 +273,7 @@
+ dummy=0
+
+ XCOMM create a file with auth information for the server. ':0' is a dummy.
+- xserverauthfile=$HOME/.serverauth.$$
++ xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX`
+ trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
+ xauth -q -f "$xserverauthfile" << EOF
+ add :$dummy . $mcookie