> Sending this to tech list as suggested by mmcc@... > > The yacc(1) manual mentions TMPDIR is an extension. > The following patch re-factors the checks around TMPDIR. > This adds an explicit check for TMPDIR-is-a-directory. > With this patch applied, yacc can more reliably determine when it > should use _PATH_TMP.
I don't see anything which says it should switch to /tmp if $TMPDIR isn't a directory. Right now, it nicely fails when mkstemp is called. All other TMPDIR-using programs work that way. So I don't see the point.