Page MenuHomeFreeBSD

D61845.1795296403.diff
No OneTemporary

Authored By
Unknown
Size
896 B
Referenced Files
None
Subscribers
None

D61845.1795296403.diff

diff --git a/stand/common/interp_lua.c b/stand/common/interp_lua.c
--- a/stand/common/interp_lua.c
+++ b/stand/common/interp_lua.c
@@ -188,7 +188,7 @@
status = lua_pcall(luap, argc, 1, 0);
ret = lua_tointeger(luap, 1);
lua_pop(luap, 1);
- if (status != 0 || ret != 0) {
+ if (status != 0) {
/*
* Lua cli_execute will pass the function back
* through loader.command, which is a proxy to
@@ -198,6 +198,15 @@
* directly if our lua_pcall was not successful.
*/
status = interp_builtin_cmd(argc, argv);
+ } else {
+ /*
+ * cli_execute() is responsible for sending any
+ * command that it doesn't want to handle back
+ * through the C bits via loader.perform(), so
+ * as long as the lua_pcall succceeded we will
+ * trust the result.
+ */
+ status = ret;
}
if (status != 0) {
if (command_errmsg != NULL)

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 9:26 PM (19 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41894699
Default Alt Text
D61845.1795296403.diff (896 B)

Event Timeline