summaryrefslogtreecommitdiff
path: root/lua_scripts
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2008-09-25 14:53:53 +0300
committerLauri Leukkunen <lle@rahina.org>2008-09-27 00:02:43 +0300
commit8fefee3ead814e18f138a58b9cea0972c039b08d (patch)
tree81c11159fe95d173e3d68846effdbbb327adcdc5 /lua_scripts
parent1195654f1fb7ccb5aaab1b3ecaf95801ad67a9ee (diff)
Bugfix: Fixed compatibility with older qemu versions (in exec postprocessor)
Diffstat (limited to 'lua_scripts')
-rw-r--r--lua_scripts/argvenvp.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua_scripts/argvenvp.lua b/lua_scripts/argvenvp.lua
index b2f9818..112809d 100644
--- a/lua_scripts/argvenvp.lua
+++ b/lua_scripts/argvenvp.lua
@@ -239,6 +239,10 @@ function sb_execve_postprocess_cpu_transparency_executable(rule, exec_policy,
table.insert(new_argv, envp[i])
end
end
+ else
+ -- copy environment. Some things will be broken with
+ -- this qemu (for example, prelinking won't work)
+ new_envp = envp
end
-- unmapped file is exec'd