This commit is contained in:
2026-07-28 20:13:50 -04:00
parent 49c9e5e37c
commit 56646625c0
71 changed files with 638 additions and 103 deletions
@@ -124,7 +124,7 @@ end
local function validateComponent(comp)
local lower = comp:lower()
if not lower:match(SAFE_COMPONENT_PATTERN) then
if not comp:match(SAFE_COMPONENT_PATTERN) then
error("EINVAL: illegal characters in path component: " .. comp, 3)
end
if lower == ".meta" then
@@ -276,7 +276,7 @@ local function namei(path, noFollow, symDepth)
else
validateComponent(comp)
local lname = comp:lower()
local lname = comp
local curPath = "/" .. table.concat(stack, "/")
@@ -374,7 +374,7 @@ local function normalizePath(path)
table.remove(stack)
end
else
table.insert(stack, comp:lower())
table.insert(stack, comp)
end
end