]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
fix map() command on 32-bit platforms; regressed in 5.2.0
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 13 Nov 2020 13:16:32 +0000 (14:16 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 16 Nov 2020 08:20:04 +0000 (09:20 +0100)
commite01979620025666633250b3e2d545fe59c629f73
treef0d6f332a5d3e5c901ce40708c4a670258abef9b
parent55822a47492dd73cc9cce40ea80f17c39c2792fc
fix map() command on 32-bit platforms; regressed in 5.2.0

LuaJIT FFI was using opendir() (etc.) variants with 32-bit inodes
but the C parts was using them as 64-bit inode variants.
Consequently the `struct dirent` layout didn't match and we were getting
filenames shifted by eight bytes.

Now the whole dir-listing lua function is written in C.
.luacheckrc
NEWS
daemon/bindings/impl.c
daemon/lua/kluautil.lua