Error in 'make-ca' script

"\"Erwin\"" ([email protected] via blfs-dev Mailing List) <[email protected]> Mon, 2 Feb 2026 20:47:03 +0000
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
The 'make-ca' script does not work when the environment variable TMPDIR is
set.
The script contains several calls of 'mktemp'.
On call is:  mktemp -p ${TEMPDIR}/certs -t make-ca.XXXXXXXX.tmp
Unfortunately the parameter '-p' is ignored when $TMPDIR is set
such that the temporary file is created in the wrong directory.
A solution could be to unset TMPDIR before 'mktemp -p' is called.

The manual of 'mktemp' suggests that the parameter '-p' has precedence over
$TMPDIR.
But a simple test shows that $TMPDIR has precedence instead.

'mktemp' from coreutils 9.9 has been used.

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page