diff options
author | Daniel Moch | 2019-09-21 13:09:31 -0400 |
---|---|---|
committer | Daniel Moch | 2019-09-21 13:09:31 -0400 |
commit | fb5ca3c857edff33871c5d4848fbd51bbadf67c3 (patch) | |
tree | a8745daee991b5d92d9864f33fe40e074e833968 /06_move_serverauthfile_into_tmp.diff | |
download | aur-xorg-xinit-posix.tar.gz |
upgpkg: xorg-xinit-posix 1.4.1-1
Diffstat (limited to '06_move_serverauthfile_into_tmp.diff')
-rw-r--r-- | 06_move_serverauthfile_into_tmp.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/06_move_serverauthfile_into_tmp.diff b/06_move_serverauthfile_into_tmp.diff new file mode 100644 index 000000000000..dde11e3835be --- /dev/null +++ b/06_move_serverauthfile_into_tmp.diff @@ -0,0 +1,21 @@ +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 + |