os.getuid() no longer fails outside of a process
This commit is contained in:
parent
67363dcf92
commit
ada544d266
@ -140,6 +140,7 @@ do -- so local works
|
|||||||
end
|
end
|
||||||
function os.getuid(pid)
|
function os.getuid(pid)
|
||||||
pid = pid or cT
|
pid = pid or cT
|
||||||
|
if not tT[pid] then return "superuser" end
|
||||||
return tT[pid].u
|
return tT[pid].u
|
||||||
end
|
end
|
||||||
function os.users()
|
function os.users()
|
||||||
|
Loading…
Reference in New Issue
Block a user