binary support fixes

This commit is contained in:
kepler155c@gmail.com
2020-06-01 16:53:01 -06:00
parent 4796e9e77a
commit 5c4ab57ec8
7 changed files with 15 additions and 7 deletions

View File

@@ -72,4 +72,4 @@ function linkfs.move(node, s, t)
return fs.move(s, t)
end
return linkfs
return linkfs

View File

@@ -154,6 +154,9 @@ function ramfs.open(node, fn, fl)
local ctr = 0
return {
readAll = function()
return string.char(table.unpack(c))
end,
read = function(n)
if n and n > 1 and ctr < node.size then
-- some programs open in rb, when it should have