On 2013/12/02 22:10, Vadim Zhukov wrote:
> Unbreak: the XXX template should be at the end of string for mktemp(1). Okay?

ok, but why on earth is coreutils mktemp not just a wrapper around
mkstemp which only support trailing X's?!

>  +DOCBOOK=$SGML/docbook/4.1
> -+TMPFILE=`mktemp /tmp/dtm.XXXXXXXXXX.psinc || exit 1`
> ++TMPFILE=`mktemp /tmp/dtm.psinc.XXXXXXXXXX || exit 1`
>  +trap 'rm -f $TMPFILE' 0 1 2 3 13 15

so until the check for sufficient X's was added to mktemp(1)/mktemp(3),
this was creating /tmp/dtm.XXXXXXXXXX.psinc every time - nice!

Reply via email to