From 54a0d8f34fe4d4c0a3f295ed4122056711115e5f Mon Sep 17 00:00:00 2001 From: Lauri Aarnio Date: Wed, 4 Feb 2009 10:17:56 +0200 Subject: 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.. --- lua_scripts/argvenvp.lua | 2 +- lua_scripts/pathmaps/devel/00_default.lua | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'lua_scripts') 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", -- cgit v1.2.3