diff --git agen5/ag-text.c agen5/ag-text.c
index 47cfca5..9a5e1fc 100644
|
|
char const ag_text_strtable[16331] = |
289 | 289 | /* 5125 */ "malloc of %zd bytes failed\n\0" |
290 | 290 | /* 5153 */ "gperf --version > /dev/null 2>&1 || die 'no gperf program'\n" |
291 | 291 | "test -z ${gpdir} && {\n" |
292 | | " gpdir=`mktemp -d ./.gperf.XXXXXX` 2>/dev/null\n" |
| 292 | " gpdir=`gmktemp -d ./.gperf.XXXXXX` 2>/dev/null\n" |
293 | 293 | " test -z \"${gpdir}\" && gpdir=.gperf.$$\n" |
294 | 294 | " test -d ${gpdir} || mkdir ${gpdir} || die \"cannot mkdir ${gpdir}\"\n" |
295 | 295 | "}\n" |
… |
… |
char const ag_text_strtable[16331] = |
616 | 616 | "mk_tmp_dir() {\n" |
617 | 617 | " test -d \"${tmp_dir}\" && return 0\n" |
618 | 618 | " tmp_dir=`\n" |
619 | | " t=\\`mktemp -d ${TMPDIR}/.ag-XXXXXX\\`\n" |
| 619 | " t=\\`gmktemp -d ${TMPDIR}/.ag-XXXXXX\\`\n" |
620 | 620 | " test -d \"${t}\" || {\n" |
621 | 621 | " t=${TMPDIR}/.ag-$$\n" |
622 | 622 | " rm -rf ${t}\n" |
diff --git agen5/ag-text.def agen5/ag-text.def
index a8a3c0b..4477a0d 100644
|
|
string = { nm = MK_GPERF_SCRIPT; |
450 | 450 | str = <<- _GP_Script_ |
451 | 451 | gperf --version > /dev/null 2>&1 || die 'no gperf program' |
452 | 452 | test -z ${gpdir} && { |
453 | | gpdir=`mktemp -d ./.gperf.XXXXXX` 2>/dev/null |
| 453 | gpdir=`gmktemp -d ./.gperf.XXXXXX` 2>/dev/null |
454 | 454 | test -z "${gpdir}" && gpdir=.gperf.$$ |
455 | 455 | test -d ${gpdir} || mkdir ${gpdir} || die "cannot mkdir ${gpdir}" |
456 | 456 | } |
… |
… |
string = { nm = SHELL_INIT_STR; |
743 | 743 | mk_tmp_dir() { |
744 | 744 | test -d "${tmp_dir}" && return 0 |
745 | 745 | tmp_dir=` |
746 | | t=\`mktemp -d ${TMPDIR}/.ag-XXXXXX\` |
| 746 | t=\`gmktemp -d ${TMPDIR}/.ag-XXXXXX\` |
747 | 747 | test -d "${t}" || { |
748 | 748 | t=${TMPDIR}/.ag-$$ |
749 | 749 | rm -rf ${t} |
diff --git agen5/mk-stamps.sh agen5/mk-stamps.sh
index 49269cf..846a024 100644
|
|
|
28 | 28 | # because some of the rules are complex and we don't want to |
29 | 29 | # deal with the dual update problem. |
30 | 30 | |
31 | | STAMP_TEMP_DIR=$(mktemp --suffix=.tdir -d /tmp/mk-stamps-XXXXXXXX) |
| 31 | STAMP_TEMP_DIR=$(gmktemp --suffix=.tdir -d /tmp/mk-stamps-XXXXXXXX) |
32 | 32 | exec 9>&2 2>> ${STAMP_TEMP_DIR}/mk-stamps.log |
33 | 33 | stop_tracing=: |
34 | 34 | if (shopt -qo xtrace) |
… |
… |
conf_time_make_dep_file() { |
310 | 310 | # |
311 | 311 | export PS4='+stmp=${FUNCNAME:-=}-$LINENO> ' |
312 | 312 | set_defaults ${1+"$@"} |
313 | | rmlist=`mktemp ${TMPDIR:-/tmp}/rmlist-XXXXXX` |
| 313 | rmlist=`gmktemp ${TMPDIR:-/tmp}/rmlist-XXXXXX` |
314 | 314 | test -f "$rmlist" || { |
315 | 315 | rmlist=${TMPDIR:-/tmp}/rmlist-$$ |
316 | 316 | rm -f $rmlist |
diff --git agen5/test/daemon.test agen5/test/daemon.test
index 68dce8e..6b4d93d 100755
|
|
|
23 | 23 | # |
24 | 24 | # ---------------------------------------------------------------------- |
25 | 25 | |
26 | | tdir=$( (mktemp -d $PWD/.daemon-XXXXXX.d) 2>/dev/null) |
| 26 | tdir=$( (gmktemp -d $PWD/.daemon-XXXXXX.d) 2>/dev/null) |
27 | 27 | test -z "${tdir}" && { |
28 | 28 | tdir=$PWD/.daemon-$$.d |
29 | 29 | rm -rf ${tdir} |
diff --git build-aux/run-ag.sh build-aux/run-ag.sh
index 6ee7b85..127ed2c 100644
|
|
find_exe() { |
45 | 45 | return 0 |
46 | 46 | } |
47 | 47 | |
48 | | STAMP_TEMP_DIR=$(mktemp --suffix=.tdir -d /tmp/run-ag-XXXXXXXX) |
| 48 | STAMP_TEMP_DIR=$(gmktemp --suffix=.tdir -d /tmp/run-ag-XXXXXXXX) |
49 | 49 | exec 9>&2 2>> ${STAMP_TEMP_DIR}/mk-stamps.log |
50 | 50 | VERBOSE=1 |
51 | 51 | |
diff --git config/bootstrap config/bootstrap
index 793579a..ebecb42 100755
|
|
config_tools() |
95 | 95 | i_made_temp_dir=false |
96 | 96 | |
97 | 97 | else |
98 | | TEMP_DIR=`mktemp -d ${TMPDIR:-/tmp}/bs-XXXXXX` |
| 98 | TEMP_DIR=`gmktemp -d ${TMPDIR:-/tmp}/bs-XXXXXX` |
99 | 99 | i_made_temp_dir=true |
100 | 100 | export TEMP_DIR |
101 | 101 | fi |
diff --git config/config.guess config/config.guess
index 256083a..8657e26 100755
|
|
set_cc_for_build=' |
100 | 100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
101 | 101 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
102 | 102 | : ${TMPDIR=/tmp} ; |
103 | | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| 103 | { tmp=`(umask 077 && gmktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
104 | 104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
105 | 105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
106 | 106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
diff --git config/ltmain.sh config/ltmain.sh
index 0f0a2da..504429e 100644
|
|
func_mktempdir () |
899 | 899 | else |
900 | 900 | |
901 | 901 | # If mktemp works, use that first and foremost |
902 | | _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` |
| 902 | _G_tmpdir=`gmktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` |
903 | 903 | |
904 | 904 | if test ! -d "$_G_tmpdir"; then |
905 | 905 | # Failing that, at least try and use $RANDOM to avoid a race |
diff --git config/mk-shdefs.in config/mk-shdefs.in
index 68aed2a..b38a121 100644
|
|
configure() { |
130 | 130 | |
131 | 131 | set -x |
132 | 132 | exec 9>&2 |
133 | | tmp=$(mktemp --suffix=.tdir -d /tmp/shdefs-XXXXXXXXX) |
| 133 | tmp=$(gmktemp --suffix=.tdir -d /tmp/shdefs-XXXXXXXXX) |
134 | 134 | exec 2>> $tmp/mk-shdef.log |
135 | 135 | init $0 $1 |
136 | 136 | mk_config |
diff --git configure configure
index 41873b2..3ba78a9 100755
|
|
$debug || |
20060 | 20060 | # Create a (secure) tmp directory for tmp files. |
20061 | 20061 | |
20062 | 20062 | { |
20063 | | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 20063 | tmp=`(umask 077 && gmktemp -d "./confXXXXXX") 2>/dev/null` && |
20064 | 20064 | test -d "$tmp" |
20065 | 20065 | } || |
20066 | 20066 | { |