Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap order of attempts in
getHome()
to check syscall first and `$HO…
…ME` second if necessary 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: #6622
- Loading branch information