diff options
author | Dave Nicponski <dave.nicponski@gmail.com> | 2022-06-15 16:38:56 -0400 |
---|---|---|
committer | Dave Nicponski <dave.nicponski@gmail.com> | 2022-06-17 17:42:08 -0400 |
commit | ca2be509b96a10a2035039a825fc2b292ec0ad4d (patch) | |
tree | c2966d459cc8b1c606deb4af5f1a7b98fa6e2b89 /src/libexpr/value.hh | |
parent | 9f58df4c91007aa9f4eb701fd6667ac3ed39c8fa (diff) |
Verify `$HOME` is owned by current user in `getHome()`, if it exists.
Useful because a default `sudo` on darwin doesn't clear `$HOME`, so things like `sudo nix-channel --list`
will surprisingly return the USER'S channels, rather than `root`'s.
Other counterintuitive outcomes can be seen in this PR description:
https://github.com/NixOS/nix/pull/6622
Diffstat (limited to 'src/libexpr/value.hh')
0 files changed, 0 insertions, 0 deletions