rrthomas/luaposix — pull request #37 by avnik (2012-05-08 13:19:17+00:00)
Title: An/3833/mkdtemp mkstemp v3

Hi Reuben!

I'm add mkdtemp() function and improve mktemp() to proper freeing allocated strings on failures. All string operation in this functions converted to luaL_checklstring (because I want to enforce checking all lua strings to occurences of \0 characters -- lua allow it, but libc not. This check will be added later as own patchseries).

Also I rework glob() test to use mkdtemp(), and now this test not depend where we build luaposix, in source tree or not. This allow us to use tests on luaposix built as system package.