Re: g_get_home_dir, g_get_tmp_dir
- From: Des Herriott <des ops netcom net uk>
- To: gtk-devel-list redhat com
- Subject: Re: g_get_home_dir, g_get_tmp_dir
- Date: Wed, 28 Oct 1998 10:39:18 +0000
On Oct 28, Tor Lillqvist wrote:
> > Should HOME be used on a Unix system in preference to querying
> > someone's home directory via the UID/EUID of the process, and using
> > getpwuid() ?
>
> I think so, yes. What would be the purpose of HOME otherwise, if th
> passwd entry had precedence? Isn't this how HOME is usually used?
You're probably right - I just thought I'd raise the point.
> > At the very least, "/var/tmp" should be used.
>
> Not all Unixen have a /var/tmp... P_tmpdir is good, and as a last
> resort "/tmp".
Sounds good. I think P_tmpdir is fairly ubiquitous on Unix machines.
--
Des Herriott
des@ops.netcom.net.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]