mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-07 11:05:10 +02:00
Refresh both patches as upstream renamed the target files. Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
22 lines
811 B
Diff
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
|