Use mktemp instead of tempfile, which is safer.
authorJan Lahoda <jlahoda@netbeans.org>
Wed, 13 Jul 2011 20:12:58 +0200
changeset 63541d3e86cd209
parent 634 c5f8743a4d61
child 636 2b9ece915e05
Use mktemp instead of tempfile, which is safer.
remoting/server/scripts/index.sh
     1.1 --- a/remoting/server/scripts/index.sh	Wed Jul 13 20:12:16 2011 +0200
     1.2 +++ b/remoting/server/scripts/index.sh	Wed Jul 13 20:12:58 2011 +0200
     1.3 @@ -1,7 +1,5 @@
     1.4  DIR=`dirname $0`
     1.5 -USERDIR=`tempfile`;
     1.6 -rm $USERDIR
     1.7 -mkdir -p $USERDIR
     1.8 +USERDIR=`mktemp -d`;
     1.9  trap "rm -rf -- '$USERDIR'" EXIT
    1.10  
    1.11  ID="$1"; shift