> The utilities mktemp and tempfile both assume that if TMPDIR is set, > it points to a writable directory; although that's normally true, it's > not actually guaranteed to hold. (For example, I have a system with > libpam-tmpdir enabled where a cron job [belonging to exim4-base] runs > a shell script as the Debian-exim user that tries to use tempfile but > fails because TMPDIR still points to /tmp/user/0, which only root can > access.) > > mktemp makes no sanity checks whatsoever, and tempnam(3), which > tempfile uses, checks only that TMPDIR points to an *existing* > directory, not necessarily to a writable one.
Are you suggesting that mktemp and tempfile do something other than fail if TMPDIR is not writable? If so, what? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]