lua-pam
lua-pam copied to clipboard
C linkage for static auth_current_user
Please prove me if I am wrong, but
static int auth_current_user(lua_State *L) { ...
must have a C linkage as well e.g. it must be enclosed in extern "C" {} because lua expects functions with C calling convention.
If you don't mind, I may prepare a MR