Jo-Philipp Wich 06901331f5 Fix nixio exece()
I had occasion to use nixio.exece() recently and I could not figure out what it
wanted for the third argument (the environment) as no matter what sort of table
I passed, even nixio.getenv(), would fail with bad argument #3 to 'exece'
(invalid environment).

What it should expect is a table full of string values for keys and something
that can be converted to a string as a value, however it inverts the value of
lua_type() and compares it against a type, which will never evaluate to true.

Getting past this, the code inserts the KEY=VALUE string before the arg userdata,
and then forgets to take the env userdata into account when collecting the
arguments back into a C char**. This patch addresses all these issues and
provides a working nixio.exece().

[Fixes #500]
2012-10-29 12:52:27 +00:00
2012-10-10 19:24:38 +00:00
2012-10-29 12:52:27 +00:00
2012-10-13 10:08:38 +00:00
2008-07-29 21:16:12 +00:00
2008-11-19 23:02:36 +00:00
2009-02-22 23:19:25 +00:00
Description
LuCI - OpenWrt Configuration Interface
Apache-2.0 470 MiB
Languages
JavaScript 59.2%
C 18.4%
Lua 11.2%
CSS 3.8%
HTML 2.3%
Other 5%