Please note that I don't set TMPDIR. This weird pam module that sneaked in via some dependency does. I don't run mktemp, either. This can be found in apparmor.postinst. Of course I could examine all the postinst scripts before running apt install of some packages, and unset all these variables that might lead into problems, but I doubt that this is the way to follow.
Running mktemp I would either give it a dedicated path for a temporary file, or I would unset a bad TMPDIR. Maybe ignoring a bad TMPDIR would be the job of mktemp; I cannot say. Regards Harri
OpenPGP_signature.asc
Description: OpenPGP digital signature

