[tlbuild] patches from Debian
Peter Breitenlohner
peb at mppmu.mpg.de
Fri Mar 6 08:36:17 CET 2015
On Fri, 6 Mar 2015, Norbert Preining wrote:
> Don't use unsafe temp filename, use mktemp
> ---
> texk/kpathsea/mktexlsr | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- texlive-bin.orig/texk/kpathsea/mktexlsr
> +++ texlive-bin/texk/kpathsea/mktexlsr
> @@ -73,7 +73,7 @@
> dry_run=false
> trees=
>
> -treefile="${TMPDIR-/tmp}/mktexlsrtrees$$.tmp"
> +treefile=`mktemp --tmpdir mktexlsrtrees.XXXXXXXXXX` || exit 1
> trap 'cd /; rm -f $treefile; test -z "$db_dir_tmp" || rm -rf "$db_dir_tmp";
> exit' 0 1 2 3 7 13 15
>
Is mktemp sufficiently portable?
Quoting from the Autoconf manual (11.15 Limitations of Usual Tools):
Shell scripts can use temporary files safely with `mktemp', but it
does not exist on all systems.
Regards
Peter Breitenlohner <peb at mppmu.mpg.de>
More information about the tlbuild
mailing list