wok view xorg-xinit/stuff/06_move_serverauthfile_into_tmp.diff @ rev 16319
ARM: add mpfr + mpc-library (to cook native ARM gcc) and try to fix glib (gtk crashe are from libgobject-2.0.so.0)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 09 20:51:15 2014 +0200 (2014-04-09) |
parents | |
children |
line source
1 Move startx auth files in /tmp so they are removed on reboot.
2 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736
3 The trap patch didn't seem to work on reboot.
4 ---
5 startx.cpp | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
8 Index: xinit/startx.cpp
9 ===================================================================
10 --- xinit.orig/startx.cpp
11 +++ xinit/startx.cpp
12 @@ -273,7 +273,7 @@
13 dummy=0
15 XCOMM create a file with auth information for the server. ':0' is a dummy.
16 - xserverauthfile=$HOME/.serverauth.$$
17 + xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX`
18 trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
19 xauth -q -f "$xserverauthfile" << EOF
20 add :$dummy . $mcookie