Re: g_get_home_dir, g_get_tmp_dir



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]