summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/io.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/io.lua b/xmake/core/sandbox/modules/io.lua
index 69cd22b76..49cb1b509 100644
--- a/xmake/core/sandbox/modules/io.lua
+++ b/xmake/core/sandbox/modules/io.lua
@@ -53,6 +53,8 @@ if sandbox_io_file.__index ~= sandbox_io_file then
end
end
end
+ -- file:lines does not use its second return value for error
+ sandbox_io_file.lines = io.file.lines
end
-- get file size