Up to [Public] / libwww / Library / src
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: Amaya-4-1-0
Luc Van Eycken: HTLibInit sets the environment variable TMPDIR to "" (which is not the same as unsetting it, as the comment claims) so the function tempnam (in HTGetTmpFileName) does not get confused. However this assumes that HTGetTmpFileName is the only user of TMPDIR, which is not at all evident since this is part of a library which can be linked to any other kind of program. In fact I ran into this problem using xdvi, which calls a script mktexpk containing "TEMPDIR=${TMPDIR-/tmp}/mt$$.tmp". If TMPDIR is set to "", this results in an unusable TEMPDIR = /mt$$.tmp. In my opinion, the correct way to do it, is to change TMPDIR only locally in HTGetTmpFileName and I hope that someone can make the appropriate changes.