The chmod has a race (that access to the temporary directory could be
gained after it is created but before it is chmoded)

Would this patch be sufficient? Gary et al. okay to apply if it is?
2003-02-03 Scott James Remnant <address@hidden>
* ltmain.in: Create temporary directory under a strict umask
rather than running chmod afterwards, preventing a race
condition where the directory could be replaced with a symbolic
link in the time between the two commands.