From 22320a7c42141437c08a659a3cb4547a284c7ad8 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 14 Jun 2015 12:58:23 +0200 Subject: Use mktemp to create .serverauth file. Inspired by Debian patches --- startx.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/startx.cpp b/startx.cpp index 2a10283..807d539 100644 --- a/startx.cpp +++ b/startx.cpp @@ -269,7 +269,7 @@ if [ x"$enable_xauth" = x1 ] ; then dummy=0 XCOMM create a file with auth information for the server. ':0' is a dummy. - xserverauthfile=$HOME/.serverauth.$$ + xserverauthfile=`mktemp ${HOME}/.serverauth.XXXXXXXXXX` trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM xauth -q -f "$xserverauthfile" << EOF add :$dummy . $mcookie @@ -331,4 +331,3 @@ kbd_mode -a #endif exit $retval - -- cgit v1.2.3