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
end
end
function os.setuser(user)
tT[cT].u = user
end
function os.genenv()
local et = {}
setmetatable(et,{__index=_G})