lix/src/libutil
Matthew Bauer 74f6d8767d Get effective user in Nix commands
‘geteuid’ gives us the user that the command is being run as,
including in setuid modes. By using geteuid to determind id, we can
avoid the ‘sudo -i’ hack when upgrading Nix. So now, upgrading Nix on
macOS is as simple as:

$ sudo nix-channel --update
$ sudo nix-env -u

$ sudo launchctl stop org.nixos.nix-daemon
$ sudo launchctl start org.nixos.nix-daemon
or
$ sudo systemctl restart nix-daemon
2018-09-04 19:32:39 -05:00
..
affinity.cc printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
affinity.hh Run the daemon worker on the same CPU as the client 2013-08-07 14:02:04 +02:00
archive.cc Modularize config settings 2018-05-30 13:28:01 +02:00
archive.hh Modularize config settings 2018-05-30 13:28:01 +02:00
args.cc nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
args.hh nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
compression.cc Fix warnings in compression.cc 2018-08-21 15:20:23 +02:00
compression.hh Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
config.cc Modularize config settings 2018-05-30 13:28:01 +02:00
config.hh Modularize config settings 2018-05-30 13:28:01 +02:00
finally.hh Add missing #include 2016-11-07 14:35:47 +01:00
hash.cc Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00
hash.hh builtins.fetchgit: Support importing a working tree 2017-10-30 19:59:25 +01:00
istringstream_nocopy.hh Move istringstream_nocopy to a separate file 2017-03-21 14:43:03 +01:00
json.cc Store floating point numbers in double precision 2018-07-03 18:39:32 +02:00
json.hh nix search: Add a cache 2017-07-26 17:29:10 +02:00
lazy.hh Figure out the user's home directory if $HOME is not set 2017-05-05 17:08:23 +02:00
local.mk Reduce substitution memory consumption 2018-03-16 20:35:59 +01:00
logging.cc Filter ANSI colors when not writing to a terminal 2018-03-15 16:08:07 +01:00
logging.hh Wrap thread local in function for Cygwin 2018-03-12 00:56:41 -04:00
lru-cache.hh Fix double free in Store::queryPathInfo() 2018-03-09 14:19:51 +01:00
monitor-fd.hh monitor-fds: Fix on macOS. 2018-02-14 18:26:37 -05:00
pool.hh RemoteStore: Add option to drop old connections from the pool 2017-09-14 18:10:38 +02:00
ref.hh Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
serialise.cc Improve 'coroutine has finished' error message 2018-08-21 15:22:04 +02:00
serialise.hh Improve 'coroutine has finished' error message 2018-08-21 15:22:04 +02:00
sync.hh sync.hh: return cv_status instead of dropping it, in case useful. 2018-06-18 17:31:00 -05:00
thread-pool.cc Fix a hang in ThreadPool 2017-10-09 15:41:09 +02:00
thread-pool.hh Fix a hang in ThreadPool 2017-10-09 15:41:09 +02:00
types.hh Progress indicator: Show number of active items 2017-08-16 20:56:03 +02:00
util.cc Get effective user in Nix commands 2018-09-04 19:32:39 -05:00
util.hh Make <nix/fetchurl.nix> run in constant memory 2018-05-30 13:42:51 +02:00
xml-writer.cc Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00
xml-writer.hh Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00