From 8778b140a17395b49550326f928dfd5e94446ccf Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 26 Sep 2017 13:56:44 +1000 Subject: [PATCH] os.getuid() no longer fails outside of a process --- modules/base/header.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/base/header.lua b/modules/base/header.lua index 35525f1..fd372e3 100644 --- a/modules/base/header.lua +++ b/modules/base/header.lua @@ -140,6 +140,7 @@ do -- so local works end function os.getuid(pid) pid = pid or cT + if not tT[pid] then return "superuser" end return tT[pid].u end function os.users()