summaryrefslogblamecommitdiff
path: root/user/xinit/06_move_serverauthfile_into_tmp.patch
blob: d128e1141d6b03be0785fce0e6e5b7b6f358130a (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                   


                                                                   




                                                                               
                                                                   

                                          
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-1.4.2.orig/startx.cpp	2022-12-03 22:18:43.000000000 +0000
+++ xinit-1.4.2/startx.cpp	2024-08-30 09:47:01.763977101 +0000
@@ -272,7 +272,7 @@ if [ x"$enable_xauth" = x1 ] ; then
     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 BUS TERM
     xauth -q -f "$xserverauthfile" << EOF
 add :$dummy . $mcookie