diff --git a/lib/librumpuser/build-aux/install-sh b/lib/librumpuser/build-aux/install-sh index b1bb29843c84..377bb8687ffe 100755 --- a/lib/librumpuser/build-aux/install-sh +++ b/lib/librumpuser/build-aux/install-sh @@ -345,7 +345,7 @@ do # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) - tmpdir=$(mktemp -d -p ${TMPDIR:-/tmp}) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask &&