added a way to set the current user. security implications: 0, because I don't have any perms.
This commit is contained in:
parent
e745ae05e9
commit
74c9030668
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user