From 74c90306686c0657a353d1bad8501e95092193d8 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Sep 2017 21:20:26 +1000 Subject: [PATCH] added a way to set the current user. security implications: 0, because I don't have any perms. --- modules/base/header.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/base/header.lua b/modules/base/header.lua index ac8003e..0df6dbc 100644 --- a/modules/base/header.lua +++ b/modules/base/header.lua @@ -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})