Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142266271
D28778.id85008.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
677 B
Referenced Files
None
Subscribers
None
D28778.id85008.diff
View Options
diff --git a/lib/flua/libjail/lua_jail.c b/lib/flua/libjail/lua_jail.c
--- a/lib/flua/libjail/lua_jail.c
+++ b/lib/flua/libjail/lua_jail.c
@@ -113,7 +113,6 @@
"expected a jail name (string) or id (integer)");
luaL_checktype(L, 2, LUA_TTABLE);
params_count = 1 + lua_rawlen(L, 2);
- luaL_argcheck(L, params_count > 1, 2, "expected #params > 0");
flags = luaL_optinteger(L, 3, 0);
params = malloc(params_count * sizeof(struct jailparam));
@@ -236,7 +235,6 @@
lua_pushnil(L);
for (params_count = 1; lua_next(L, 2) != 0; ++params_count)
lua_pop(L, 1);
- luaL_argcheck(L, params_count > 1, 2, "expected #params > 0");
flags = luaL_optinteger(L, 3, 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 18, 11:33 PM (1 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27723204
Default Alt Text
D28778.id85008.diff (677 B)
Attached To
Mode
D28778: lib/flua/libjail: Allow empty params table
Attached
Detach File
Event Timeline
Log In to Comment