# HG changeset patch # User Emmanuel Gil Peyrot # Date 1533713322 -7200 # Node ID bad9e8b43f50f6cacbbf1369e0a4c3ee4b5089ac # Parent fee3933ff346f9b5af88dc739b007e9ef5d11a47 pposix: Generate an error when a passed string isn’t "unlimited". diff -r fee3933ff346 -r bad9e8b43f50 util-src/pposix.c --- a/util-src/pposix.c Wed Aug 08 09:28:04 2018 +0200 +++ b/util-src/pposix.c Wed Aug 08 09:28:42 2018 +0200 @@ -552,6 +552,7 @@ if(strcmp(lua_tostring(L, idx), "unlimited") == 0) { return RLIM_INFINITY; } + return luaL_argerror(L, idx, "unexpected type"); case LUA_TNUMBER: return lua_tointeger(L, idx);