diff options
Diffstat (limited to 'user/xinit/06_move_serverauthfile_into_tmp.patch')
-rw-r--r-- | user/xinit/06_move_serverauthfile_into_tmp.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/user/xinit/06_move_serverauthfile_into_tmp.patch b/user/xinit/06_move_serverauthfile_into_tmp.patch index 99e8a6754..d128e1141 100644 --- a/user/xinit/06_move_serverauthfile_into_tmp.patch +++ b/user/xinit/06_move_serverauthfile_into_tmp.patch @@ -7,14 +7,14 @@ The trap patch didn't seem to work on reboot. Index: xinit/startx.cpp =================================================================== ---- xinit.orig/startx.cpp -+++ xinit/startx.cpp -@@ -273,7 +273,7 @@ +--- 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 KILL BUS TERM + trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM xauth -q -f "$xserverauthfile" << EOF add :$dummy . $mcookie |