Tempfile creation should be done in a safe way. To be safe, the temp file function
should open up the temp file with appropriate access control. The temp file
function should also retain this quality, while being resistant to race conditions. (from TCCLASP-5_6_20_10)