mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Merge 0.9->0.10
This commit is contained in:
commit
b8ab703419
1 changed files with 2 additions and 0 deletions
|
@ -676,6 +676,8 @@ int lc_fallocate(lua_State* L)
|
|||
{
|
||||
off_t offset, len;
|
||||
FILE *f = *(FILE**) luaL_checkudata(L, 1, LUA_FILEHANDLE);
|
||||
if (f == NULL)
|
||||
luaL_error(L, "attempt to use a closed file");
|
||||
|
||||
offset = luaL_checkinteger(L, 2);
|
||||
len = luaL_checkinteger(L, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue