Re: Why is the default $HOME /homeless-shelter?

2019-11-23 Thread Ludovic Courtès
Hi Clément, Thanks for researching this! clem...@lassieur.org (Clément Lassieur) skribis: > https://github.com/NixOS/nix/blob/258897c265a6d6575f1669a896ab6f5ab92337c3/src/libstore/build.cc#L1694 > > Set HOME to a non-existing path to prevent certain programs from using > /etc/passwd (or NIS, or

Re: Why is the default $HOME /homeless-shelter?

2019-11-18 Thread Clément Lassieur
Hi Jesse, Jesse Gibbons writes: > On Sun, 2019-11-17 at 22:39 +0100, Ludovic Courtès wrote: >> Hi! >> >> Because it’s always been this way! :-) >> >> This is inherited from Nix. The rationale is that there’s no home >> directory in build environments, and perhaps Eelco Dolstra and others >>

Re: Why is the default $HOME /homeless-shelter?

2019-11-17 Thread Jesse Gibbons
On Sun, 2019-11-17 at 22:39 +0100, Ludovic Courtès wrote: > Hi! > > Because it’s always been this way! :-) > > This is inherited from Nix. The rationale is that there’s no home > directory in build environments, and perhaps Eelco Dolstra and others > back then found that setting ‘HOME’ to a non

Re: Why is the default $HOME /homeless-shelter?

2019-11-17 Thread Ludovic Courtès
Hi! Because it’s always been this way! :-) This is inherited from Nix. The rationale is that there’s no home directory in build environments, and perhaps Eelco Dolstra and others back then found that setting ‘HOME’ to a non-existing directory broke fewer builds that leaving it unset. HTH, Ludo

Why is the default $HOME /homeless-shelter?

2019-11-16 Thread Jesse Gibbons