diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-21 14:24:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-21 14:26:00 +0000 |
commit | 857f48e8e319db95763fa77ee515c47fff56f0ee (patch) | |
tree | c01b224f5f9d7ace99e34ecc1ed2495c7ed3a4e5 /main/xinit/06_move_serverauthfile_into_tmp.patch | |
parent | 8f137f35e59c34a04f9ed5afeb10e9b9bc724a1d (diff) | |
download | aports-857f48e8e319db95763fa77ee515c47fff56f0ee.tar.bz2 aports-857f48e8e319db95763fa77ee515c47fff56f0ee.tar.xz |
main/xinit: upgrade to 1.2.1
Diffstat (limited to 'main/xinit/06_move_serverauthfile_into_tmp.patch')
-rw-r--r-- | main/xinit/06_move_serverauthfile_into_tmp.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/xinit/06_move_serverauthfile_into_tmp.patch b/main/xinit/06_move_serverauthfile_into_tmp.patch new file mode 100644 index 0000000000..99e8a6754d --- /dev/null +++ b/main/xinit/06_move_serverauthfile_into_tmp.patch @@ -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 |