exposed parseacl as part of _G

This commit is contained in:
Izaya 2017-09-15 16:04:19 +10:00 committed by Izaya
parent 83ed6019cd
commit d6b9b1db3a
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ do
end
return tacl
end
fs.parseacl = parseacl
local function getattr(fn,k)
if os.getuid() ~= "superuser" then
if not parseacl(fsattr[fn].read or "")[os.getuid()] then return false end