aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-06-20 20:40:01 -0300
committerHisham <hisham@gobolinux.org>2016-06-20 20:40:01 -0300
commita1015fe3952e1216e3df16307189586046f83131 (patch)
treeba2e9a672f474cbe697d073061591eacc0650304
parent2e068eb438238cde06b87ad44bf21af2852d05b5 (diff)
downloadluafilesystem-symlink_target.tar.gz
luafilesystem-symlink_target.tar.bz2
luafilesystem-symlink_target.zip
Lua 5.1 compatibilitysymlink_target
-rw-r--r--src/lfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 49a8534..64debb8 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -866,7 +866,8 @@ static int push_link_target(lua_State *L) {
866 if (lua_type(L, -1) == LUA_TTABLE) { 866 if (lua_type(L, -1) == LUA_TTABLE) {
867 /* when symlinkattributes collects the whole table, 867 /* when symlinkattributes collects the whole table,
868 get the size from it */ 868 get the size from it */
869 int size_type = lua_getfield(L, -1, "size"); 869 lua_getfield(L, -1, "size");
870 int size_type = lua_type(L, -1);
870 if (size_type != LUA_TNUMBER) { 871 if (size_type != LUA_TNUMBER) {
871 lua_pop(L, 1); 872 lua_pop(L, 1);
872 errno = EINVAL; 873 errno = EINVAL;