luci/libs
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
..
core libs/core: explicitely load luci.i18n in network model 2012-09-15 14:02:27 +00:00
fastindex * Rewrote Luci to be coroutine-safe allowing the use of non-forking webservers 2008-06-14 14:12:12 +00:00
httpclient libs/httpclient: return server response line in error case (#249) 2011-06-25 22:57:18 +00:00
ipkg libs/ipkg: give caller more control over filter pattern 2011-10-15 03:10:19 +00:00
json libs/json: Fix a typo and a logic error in json.lua to make luci.json.encode() work like expected (#220) 2011-04-17 11:39:17 +00:00
lmo libs/lmo: skip all entries with identical key and value when generating lmo archives 2011-01-02 18:16:54 +00:00
lucid libs/lucid: fix process function leak (#285) 2011-08-11 23:23:11 +00:00
lucid-http [PATCH] Explicit Cache-Control for lucid.http static content 2012-01-09 00:04:54 +00:00
lucid-rpc GSoC: Documentation #2 2009-06-14 08:51:43 +00:00
nixio Fix nixio exece() 2012-10-29 12:52:27 +00:00
px5g libs/px5g: fix compilation on OpenWrt trunk 2010-11-16 16:30:07 +00:00
rpcc GSoC: Add RPC client 2009-06-14 09:02:40 +00:00
sgi-cgi move luci specific index.html from package 'sgi-cgi' to 'admin-core' 2012-05-06 18:57:18 +00:00
sgi-luci Make LuCIttpd work OOTB 2008-12-07 11:47:59 +00:00
sgi-uhttpd libs/sgi-uhttpd: move exectime inside handle_request 2010-12-15 01:04:38 +00:00
sgi-wsapi Made SGIs even more standards compliant (respect EOF command from LuCI) 2008-07-23 18:52:12 +00:00
sys libs/sys: use 100ms timeouts for name resolution of host hints 2012-08-27 14:39:33 +00:00
web libs/web: relax validation for hostnames to allow names like _kerberos._udp.EXAMPLE.COM 2012-10-06 23:10:43 +00:00