Page MenuHomeFreeBSD

D45882.1793488679.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D45882.1793488679.diff

diff --git a/stand/lua/core.lua b/stand/lua/core.lua
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -65,7 +65,13 @@
-- message on failure.
function try_include(module)
if module:sub(1, 1) ~= "/" then
- module = loader.lua_path .. "/" .. module
+ local lua_path = loader.lua_path
+ -- XXX Temporary compat shim; this should be removed once the
+ -- loader.lua_path export has sufficiently spread.
+ if lua_path == nil then
+ lua_path = "/boot/lua"
+ end
+ module = lua_path .. "/" .. module
-- We only attempt to append an extension if an absolute path
-- wasn't specified. This assumes that the caller either wants
-- to treat this like it would require() and specify just the
@@ -536,7 +542,7 @@
end
end
-if not pager then
+if not pager or loader.lua_path == nil then
print("**********************************************************************")
print("**********************************************************************")
print("***** *****")

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 31, 11:17 PM (4 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41270991
Default Alt Text
D45882.1793488679.diff (1 KB)

Event Timeline