added a way to set the current user. security implications: 0, because I don't have any perms.

This commit is contained in:
Izaya 2017-09-09 21:20:26 +10:00
parent e745ae05e9
commit 74c9030668

View File

@ -101,6 +101,9 @@ do -- so local works
return tT[pid].n,tT[pid].p,tT[pid].u return tT[pid].n,tT[pid].p,tT[pid].u
end end
end end
function os.setuser(user)
tT[cT].u = user
end
function os.genenv() function os.genenv()
local et = {} local et = {}
setmetatable(et,{__index=_G}) setmetatable(et,{__index=_G})