Use mktemp to create .serverauth file. Inspired by Debian patches
This commit is contained in:
parent
6aef9ae536
commit
78490636d9
@ -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
|
||||
@ -336,4 +336,3 @@ kbd_mode -a
|
||||
#endif
|
||||
|
||||
exit $retval
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user