summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/startx.cpp b/startx.cpp
index dbc4cae..3ab9a26 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -281,7 +281,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
@@ -343,4 +343,3 @@ kbd_mode -a
#endif
exit $retval
-