Ethereal-dev: Re: [Ethereal-dev] [Patch] asn1 plugin

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 3 Nov 2003 14:36:01 -0800

On Nov 3, 2003, at 1:35 PM, Matthijs Melchior wrote:

I think g_get_tmp_dir() is a good place to store this ethereal.log file.

OK, I've checked in a change to use that in "get_tempfile_path()".

The rules it uses are:

	if TMPDIR is set, use that;

	otherwise, if TMP is set, use that;

	otherwise, if TEMP is set, use that;

	otherwise, if P_tmpdir is #defined, use that;

otherwise, if this is UNIX, use "/tmp", and if this is Windows, use "C:\".

They don't try "C:\TEMP", probably because Windows lacks UNIX's relative consistency about temporary file directories, and the directory to use apparently depends on which version of which flavor of Windows you're using.