Closed 20kdc closed 2 years ago
char tmphorror[256];
int tmpfd = memfd_create("itfd", 0);
write(tmpfd, to_client_local.cfetch_ubuf, to_client_local.cfetch_ulen);
sprintf(tmphorror, "/proc/self/fd/%i", tmpfd);
it_module_t *mus = sackit_module_load(tmphorror);
Horrible workaround to make things "work" - and do note those quotes - at any cost, on Linux, if you're lucky. Apply to lua_fetch.h
around line 357.
Ok, nope, apparently it's weirder and more complicated than that. It's not that sackit no longer supports reading from memory, it's that the build instructions point at an outdated version.
self-explainatory, unfortunately. this causes the build instructions to not function.