Hi,
What's the reason for not using the glib function g_get_tmp_dir() etc?
http://developer.gnome.org/doc/API/2.0/glib/glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir
Chris
On Mon, 3 Nov 2003 14:35:33 +0100
"Gisle Vanem" <giva@xxxxxxxxx> wrote:
> "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
>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>