summaryrefslogtreecommitdiff
path: root/lua_scripts/argvenvp.lua
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2009-02-01 16:32:23 +0200
committerLauri Leukkunen <lle@rahina.org>2009-02-10 08:38:10 +0200
commitf09d696f66df2053083a98a1d8442b475f256dbb (patch)
treea0ebf221029f21ceb2a8e98cdbff6029b77815e7 /lua_scripts/argvenvp.lua
parent169f2e1ad8ccb76558da36934ae6e72d23099429 (diff)
Fix to script interpreter exec: exec policy is selected in correct place
- Exec policy for scripts is now correctly selected when the script interpreter is selected (things were messed up when the exec policy had requirements for the interpreters..)
Diffstat (limited to 'lua_scripts/argvenvp.lua')
-rw-r--r--lua_scripts/argvenvp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua_scripts/argvenvp.lua b/lua_scripts/argvenvp.lua
index 8337540..52d5535 100644
--- a/lua_scripts/argvenvp.lua
+++ b/lua_scripts/argvenvp.lua
@@ -320,10 +320,10 @@ function sb_execve_map_script_interpreter(rule, exec_policy, interpreter,
if exec_policy.script_set_argv0_to_mapped_interpreter then
argv[1] = mapped_interpreter
- return rule, exec_policy, 0,
+ return rule, exec_pol_2, 0,
mapped_interpreter, #argv, argv, #envp, envp
else
- return rule, exec_policy, 1,
+ return rule, exec_pol_2, 1,
mapped_interpreter, #argv, argv, #envp, envp
end
end