Page MenuHomeFreeBSD

D43820.diff
No OneTemporary

D43820.diff

diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c
--- a/stand/liblua/lutils.c
+++ b/stand/liblua/lutils.c
@@ -65,14 +65,15 @@
{
const char *cmd;
- if (lua_gettop(L) != 1) {
- lua_pushnil(L);
+ cmd = luaL_checkstring(L, 1);
+ if (interp_has_builtin_cmd(cmd)) {
+ lua_pushboolean(L, 1);
return 1;
}
- cmd = luaL_checkstring(L, 1);
- lua_pushinteger(L, interp_has_builtin_cmd(cmd));
- return 1;
+ lua_pushnil(L);
+ lua_pushstring(L, "Builtin command not found");
+ return 2;
}
static int

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 10:30 PM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16482054
Default Alt Text
D43820.diff (513 B)

Event Timeline