diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2009-02-04 10:17:56 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2009-02-10 08:38:11 +0200 |
commit | 54a0d8f34fe4d4c0a3f295ed4122056711115e5f (patch) | |
tree | 9d5100343870627240eb9ed52d705010e4b151cf /lua_scripts | |
parent | c48d8caa6aab45944306ffa2f3e224198d3fd592 (diff) |
Bugfix: script execution failed to find correct exec policy
- happened because C->Lua interface left trash to Lua's stack => script
execution failed to find corect exec_policy for the script interpreter
- Also included:
- added new debugging level NOISE3
- added dump_lua_stack() (luaif/argvenvp.c), name says it all..
Diffstat (limited to 'lua_scripts')
-rw-r--r-- | lua_scripts/argvenvp.lua | 2 | ||||
-rw-r--r-- | lua_scripts/pathmaps/devel/00_default.lua | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lua_scripts/argvenvp.lua b/lua_scripts/argvenvp.lua index 52d5535..5bb5c80 100644 --- a/lua_scripts/argvenvp.lua +++ b/lua_scripts/argvenvp.lua @@ -242,7 +242,7 @@ function check_rule_and_policy(rule, exec_policy, filename, mapped_file) eps = exec_policy end - sb.log("debug", "check_rule_and_policy: "..rs..";"..eps); + sb.log("debug", "check_rule_and_policy:Fail: "..rs..";"..eps); return false, rule, exec_policy end diff --git a/lua_scripts/pathmaps/devel/00_default.lua b/lua_scripts/pathmaps/devel/00_default.lua index 80b63e7..1426520 100644 --- a/lua_scripts/pathmaps/devel/00_default.lua +++ b/lua_scripts/pathmaps/devel/00_default.lua @@ -162,7 +162,8 @@ perl_bin_test = { { if_redirect_ignore_is_active = "/usr/bin/perl", map_to = target_root, readonly = true }, { if_redirect_force_is_active = "/usr/bin/perl", - map_to = tools, readonly = true }, + map_to = tools, readonly = true, + exec_policy = exec_policy_tools_perl }, { if_active_exec_policy_is = "Rootstrap", map_to = target_root, readonly = true }, { if_active_exec_policy_is = "Tools-perl", @@ -174,7 +175,8 @@ python_bin_test = { { if_redirect_ignore_is_active = "/usr/bin/python", map_to = target_root, readonly = true }, { if_redirect_force_is_active = "/usr/bin/python", - map_to = tools, readonly = true }, + map_to = tools, readonly = true, + exec_policy = exec_policy_tools_python }, { if_active_exec_policy_is = "Rootstrap", map_to = target_root, readonly = true }, { if_active_exec_policy_is = "Tools-python", |