lix/src/libutil
Dave Nicponski ca2be509b9 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
2022-06-17 17:42:08 -04:00
..
tests
abstract-setting-to-json.hh
ansicolor.hh
archive.cc
archive.hh
args.cc
args.hh
callback.hh
chunked-vector.hh
closure.hh
comparator.hh
compression.cc
compression.hh
compute-levels.cc
compute-levels.hh
config.cc
config.hh
error.cc
error.hh
experimental-features.cc
experimental-features.hh
finally.hh
fmt.hh
git.cc
git.hh
hash.cc
hash.hh
hilite.cc
hilite.hh
json-utils.hh
json.cc
json.hh
local.mk
logging.cc
logging.hh
lru-cache.hh
monitor-fd.hh
pool.hh
ref.hh
serialise.cc
serialise.hh
split.hh
suggestions.cc
suggestions.hh
sync.hh
tarfile.cc
tarfile.hh
thread-pool.cc
thread-pool.hh
topo-sort.hh
types.hh
url-parts.hh
url.cc
url.hh
util.cc Verify $HOME is owned by current user in getHome(), if it exists. 2022-06-17 17:42:08 -04:00
util.hh
xml-writer.cc
xml-writer.hh