diff --git a/modules/lib/fs.lua b/modules/lib/fs.lua index 4c15934..23500dc 100644 --- a/modules/lib/fs.lua +++ b/modules/lib/fs.lua @@ -18,6 +18,7 @@ do end local function canread(fn) fn = fs.canonical(fn) + if os.getuid() == "nobody" then return false end if os.getuid() ~= "superuser" and fsattr[fn] then if not parseacl(fsattr[fn].read or "")[os.getuid()] then return false end end @@ -25,6 +26,7 @@ do end local function canwrite(fn) fn = fs.canonical(fn) + if os.getuid() == "nobody" then return false end if os.getuid() ~= "superuser" and fsattr[fn] then if not parseacl(fsattr[fn].write)[os.getuid()] then return false end end