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: "Gisle Vanem" <giva@xxxxxxxxx>
Date: Mon, 3 Nov 2003 14:35:33 +0100
"Guy Harris" <guy@xxxxxxxxxxxx> said:

> >   this patch makes this safer; I don't even have a c:\temp dir.
> 
> At least some versions of Windows have it; NT 5.x has a per-user
> tempfile directory, as I remember, and perhaps some of them lack the
> global c:\temp directory.

I have a user-temp dir, but it's rather difficult to get at. Deep
down under "\Document and Settings\". A %temp% is easier to
remember.
 
> Perhaps "get_tempfile_path()" should default to "c:\temp" if it exists,
> and "c:\" if it doesn't.

Would be okay assuming the user have a C: drive. Someone
might want to run Ethereal on diskless or other excotic PC 
mapped to a network share.

> Also, note that there's a routine "create_tempfile()" in "util.c" - but,
> on UNIX, it defaults to "/var/tmp" rather than "/tmp".  Should it use
> "get_tempfile_path()"? And should "get_tempfile_path()" default to
> "/tmp" or "/var/tmp" on UNIX? 

You mean if a $TMP doesn't exists, or always?

Or we could use 'get_persconffile_dir()'. It would be personal enough
and it's only one file there on my PC.

--gv