os.getuid() no longer fails outside of a process

This commit is contained in:
Izaya 2017-09-26 13:56:44 +10:00 committed by Izaya
parent 67363dcf92
commit ada544d266

View File

@ -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()