X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..b80e619319b1def83d1e8b4f84042b661be1be7f:/pcre/dftables diff --git a/pcre/dftables b/pcre/dftables index de2f5bb..669b948 100755 --- a/pcre/dftables +++ b/pcre/dftables @@ -244,7 +244,7 @@ sub readHeaderValues() my ($fh, $tempFile) = tempfile( basename($0) . "-XXXXXXXX", - DIR => ($ENV{'TMPDIR'} || "/tmp"), + DIR => File::Spec->tmpdir(), SUFFIX => ".in", UNLINK => 0, ); @@ -269,4 +269,5 @@ sub readHeaderValues() eval $content; die "$@" if $@; + unlink $tempFile; }