summaryrefslogtreecommitdiff
path: root/luaext/lposix.c
AgeCommit message (Collapse)AuthorFilesLines
2012-10-09Add lua 5.2 support.Anders F Bjorklund1-3/+7
Add compatibility support for both lua-5.1 and lua-5.2, assuming that the LUA_COMPAT might have been disabled. Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2010-11-15Basic protection against Lua os.exit() and posix.exec() (ticket #167)Panu Matilainen1-2/+37
- Track posix.fork() and only allow exit() and exec() if the script has forked. There are other questionable items in posix extensions too but these are the worst offenders. - Using Lua registry for tracking forked status might be more Lua-way option but this'll do for now.
2010-01-04Remove largely unnecessary putenv() replacementPanu Matilainen1-0/+8
- only the lua posix extension "uses" this by providing putenv() to Lua, make it conditional and return error if not supported by the underlying operating system
2010-01-04Use rpm's own strdup() clone everywherePanu Matilainen1-1/+2
2009-09-07Help compilers/analyzers a bit with luaL_error()Panu Matilainen1-3/+3
- luaL_error() never returns but as other tools dont know this it raises false alarms
2008-10-20setenv() + unsetenv() are always available in rpmPanu Matilainen1-6/+0
2008-10-20Add posix.mkstemp() to Lua posix libPanu Matilainen1-0/+32
- lifted from apt-rpm
2008-04-16Start phasing out internal copy of LuaPanu Matilainen1-0/+819
- don't build internal copy of Lua - move 3rd party extensions (posix and rexlib) to toplevel luaext/ directory, built by default (unless --without-lua specified) - auto*foo checks for external Lua - minimal tweaks to lposix.c and rpmlua.c to get them build with Lua 5.1