diff options
author | root <root@rshg054.dnsready.net> | 2011-09-06 23:14:33 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-06 23:14:33 +0000 |
commit | e2fb609d3af7a203357fd6ca983fef5f4dfba7eb (patch) | |
tree | 17d9357a559130a65cb1988b1e09cf8f1dd6bc55 /testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff | |
parent | e05f52e52ba779f4b0ebb5463dba9fc74f67f0b8 (diff) |
Tue Sep 6 23:14:33 UTC 2011
Diffstat (limited to 'testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff')
-rw-r--r-- | testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff b/testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff new file mode 100644 index 000000000..99e8a6754 --- /dev/null +++ b/testing/xorg-xinit/06_move_serverauthfile_into_tmp.diff @@ -0,0 +1,20 @@ +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.orig/startx.cpp ++++ xinit/startx.cpp +@@ -273,7 +273,7 @@ + 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 + xauth -q -f "$xserverauthfile" << EOF + add :$dummy . $mcookie |