From: Sage Weil Date: Fri, 30 Aug 2013 16:41:29 +0000 (-0700) Subject: ceph-post-file: use mktemp instead of tempfile X-Git-Tag: v0.68~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e60d4e09e9f11e3c34a05cd122341e06c7c889bb;p=ceph.git ceph-post-file: use mktemp instead of tempfile tempfile is a debian thing, apparently; mktemp is present everywhere. Signed-off-by: Sage Weil --- diff --git a/src/ceph-post-file.in b/src/ceph-post-file.in index 27fea287fc6a..ba366dbfd4a4 100755 --- a/src/ceph-post-file.in +++ b/src/ceph-post-file.in @@ -97,10 +97,10 @@ nonce=`uuidgen` # stick the user info in the dir too dir="${id}_${user}_${nonce}" -t1=$(tempfile) || exit -t2=$(tempfile) || exit -t3=$(tempfile) || exit -t4=$(tempfile) || exit +t1=$(mktemp) || exit +t2=$(mktemp) || exit +t3=$(mktemp) || exit +t4=$(mktemp) || exit trap "rm -f -- '$t1' '$t2' '$t3' '$t4'" EXIT cat > $t1 <