node: detect root via Process.uid
This commit is contained in:
parent
79a1500f2b
commit
aac200a53d
@ -50,7 +50,7 @@ module Language
|
||||
#{Dir.pwd}/#{pack}
|
||||
]
|
||||
|
||||
args << "--unsafe-perm" if ENV["USER"] == "root"
|
||||
args << "--unsafe-perm" if Process.uid.zero?
|
||||
|
||||
args
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user