aboutsummaryrefslogtreecommitdiff
path: root/binary
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2021-04-05 00:52:59 +0200
committerHisham Muhammad <hisham@gobolinux.org>2021-04-06 17:24:57 -0300
commit07d9383c1c53a0cd3967555817270a7dee9c643f (patch)
treed1ffd853f73cd5525626816446d821a8ed4e4811 /binary
parent8bc71893611b12b62dd6dd5f0e992451336b072c (diff)
downloadluarocks-07d9383c1c53a0cd3967555817270a7dee9c643f.tar.gz
luarocks-07d9383c1c53a0cd3967555817270a7dee9c643f.tar.bz2
luarocks-07d9383c1c53a0cd3967555817270a7dee9c643f.zip
Set cfg.home_tree even for root user
Don't set cfg.home_tree to nil in cfg.lua when the user is root. Instead, do explicit checks if the user is root in cmd.lua. This removes some confusion, as cfg.home_tree is later set by the default system config file, so it will show up when running 'luarocks config'.
Diffstat (limited to 'binary')
0 files changed, 0 insertions, 0 deletions