genoffset.sh: Use 10 X's instead of 5 for pick mkdtemp implementations

Linux fails to build now because the mkdtemp in the bootstrapped
environment wants 6 or more X's. Use 10 out of an abundance of caution.

Sponsored by:		Netflix
Reviewed by:		arichards
Differential Revision:	https://reviews.freebsd.org/D31863
This commit is contained in:
Warner Losh 2021-09-07 10:08:51 -06:00
parent 1e7b5f950b
commit ecfbb2e302

View File

@ -42,7 +42,7 @@ work()
echo "#define _OFFSET_INC_"
echo "#if !defined(GENOFFSET) && (!defined(KLD_MODULE) || defined(KLD_TIED))"
last=
temp=$(mktemp -d genoffset.XXXXX)
temp=$(mktemp -d genoffset.XXXXXXXXXX)
trap "rm -rf ${temp}" EXIT
# Note: we need to print symbol values in decimal so the numeric sort works
${NM:='nm'} ${NMFLAGS} -t d "$1" | grep __assym_offset__ | sed -e 's/__/ /g' | sort -k 4 -k 1 -n |