wok annotate xorg-xinit/stuff/06_move_serverauthfile_into_tmp.diff @ rev 25151

orc-dev: added .la file
author Hans-G?nter Theisgen
date Thu Jun 30 11:07:10 2022 +0100 (2022-06-30)
parents
children
rev   line source
slaxemulator@7326 1 Move startx auth files in /tmp so they are removed on reboot.
slaxemulator@7326 2 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736
slaxemulator@7326 3 The trap patch didn't seem to work on reboot.
slaxemulator@7326 4 ---
slaxemulator@7326 5 startx.cpp | 2 +-
slaxemulator@7326 6 1 file changed, 1 insertion(+), 1 deletion(-)
slaxemulator@7326 7
slaxemulator@7326 8 Index: xinit/startx.cpp
slaxemulator@7326 9 ===================================================================
slaxemulator@7326 10 --- xinit.orig/startx.cpp
slaxemulator@7326 11 +++ xinit/startx.cpp
slaxemulator@7326 12 @@ -273,7 +273,7 @@
slaxemulator@7326 13 dummy=0
slaxemulator@7326 14
slaxemulator@7326 15 XCOMM create a file with auth information for the server. ':0' is a dummy.
slaxemulator@7326 16 - xserverauthfile=$HOME/.serverauth.$$
slaxemulator@7326 17 + xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX`
slaxemulator@7326 18 trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
slaxemulator@7326 19 xauth -q -f "$xserverauthfile" << EOF
slaxemulator@7326 20 add :$dummy . $mcookie