void-packages/srcpkgs/xinit/patches/06_move_serverauthfile_into_tmp.diff
Vincent Legoll 35454e4d38 xinit: update to 1.4.4.
Refresh both patches as upstream renamed the target files.

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
2025-06-19 01:03:17 +02:00

22 lines
811 B
Diff

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.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: xinit/startx.in
===================================================================
diff --git a/startx.in b/startx.in
index 9b224af..cf559bb 100644
--- a/startx.in
+++ b/startx.in
@@ -283,7 +283,7 @@ if [ "$enable_xauth" = 1 ] ; then
dummy=0
# 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 BUS TERM
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie