Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177792987
D61845.1795296403.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
896 B
Referenced Files
None
Subscribers
None
D61845.1795296403.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61845: lualoader: don't run a failed command twice from the prompt
Attached
Detach File
Event Timeline