diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2015-06-14 12:58:23 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2015-06-14 12:58:23 +0200 |
commit | 22320a7c42141437c08a659a3cb4547a284c7ad8 (patch) | |
tree | b2931642fa8bd87685b52438bdd8aba9336dc152 /startx.cpp | |
parent | b7db09eecd615d498356f94da81ab94edb17c0ad (diff) |
Use mktemp to create .serverauth file. Inspired by Debian patches
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 - |