[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] ep
From: |
.alyn.post. |
Subject: |
Re: [Chicken-hackers] ep |
Date: |
Tue, 9 Jul 2013 12:24:12 -0600 |
On Tue, Jul 09, 2013 at 02:20:36PM -0400, John Cowan wrote:
> Mario Domenech Goulart scripsit:
>
> > My concern is with regard to environments where the user home directory
> > cannot be determined (e.g., no HOME environment variable, no home
> > directory set in /etc/passwd etc.).
>
> I think if there is no $HOME and no /etc/passwd entry, you should just assume
> /home/$username, and if you don't know that, go with /home/nobody or something
> equally improbable. Your system has to be pretty broken before you
> get to that state, and you have more immediate problems than a malfunctioning
> Chicken app.
>
/home would have been a safe assumption before Mac OS X, but that
operating system uses /Users. /etc/usermgmt.conf on OpenBSD defines
the user base_dir (to /home), I'm not sure how this value is
determined on other operating systems.
-Alan
--
my personal website: http://c0redump.org/
- [Chicken-hackers] ep, Mario Domenech Goulart, 2013/07/09
- Re: [Chicken-hackers] ep, John Cowan, 2013/07/09
- Re: [Chicken-hackers] ep,
.alyn.post. <=
- Re: [Chicken-hackers] ep, John Cowan, 2013/07/09
- Re: [Chicken-hackers] ep, Alan Post, 2013/07/09
- Re: [Chicken-hackers] ep, Peter Bex, 2013/07/09
- Re: [Chicken-hackers] ep, .alyn.post., 2013/07/09
- Re: [Chicken-hackers] ep, Evan Hanson, 2013/07/09
- Re: [Chicken-hackers] ep, Alaric Snell-Pym, 2013/07/11
Re: [Chicken-hackers] ep, .alyn.post., 2013/07/09