06_move_serverauthfile_into_tmp.diff 735 B

12345678910111213141516171819202122
  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(-)
  7. Index: xinit/startx.cpp
  8. ===================================================================
  9. --- xinit.orig/startx.cpp
  10. +++ xinit/startx.cpp
  11. @@ -273,7 +273,7 @@
  12. dummy=0
  13. XCOMM create a file with auth information for the server. ':0' is a dummy.
  14. - xserverauthfile=$HOME/.serverauth.$$
  15. + xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX`
  16. trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
  17. xauth -q -f "$xserverauthfile" << EOF
  18. add :$dummy . $mcookie