Potential windows case insensitive filesystem issue fix

This commit is contained in:
2026-02-24 00:34:59 -06:00
parent e77a8b3636
commit 62a03bfe6b
26 changed files with 18 additions and 21 deletions

View File

@@ -141,6 +141,7 @@ local function normalizePath(path)
table.remove(stack)
end
else
comp = comp:lower()
if not comp:match(SAFE_COMPONENT_PATTERN) then
error("EINVAL: illegal characters in path component: " .. comp, 2)
end

View File

@@ -385,11 +385,11 @@ kernel.processes.cctmond = function()
end
end
newtty(apis.term, "TTY1", fifo.pop)
newtty(apis.term, "tty1", fifo.pop)
for i,v in ipairs({peripheral.find("monitor")}) do
v.setTextScale(.5)
v.write("Initializing...")
newtty(v,"TTY"..tostring(i+1),function () end)
newtty(v,"tty"..tostring(i+1),function () end)
end

View File

@@ -193,10 +193,10 @@ mergeMeta("/lib/sys", {
})
mergeMeta("/lib/modules", {
{"Hyperion", REG, 0, 0, RWX_RX_RX},
{"hyperion", REG, 0, 0, RWX_RX_RX},
})
mergeMeta("/lib/modules/Hyperion", {
mergeMeta("/lib/modules/hyperion", {
{"01_stdlib.kmod", REG, 0, 0, RW_R_R},
{"10_vfs.kmod", REG, 0, 0, RW_R_R},
{"11_require.kmod", REG, 0, 0, RW_R_R},