aboutsummaryrefslogtreecommitdiffstats
path: root/guts/execve.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/execve.c')
-rw-r--r--guts/execve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/guts/execve.c b/guts/execve.c
index febcf80..fafc154 100644
--- a/guts/execve.c
+++ b/guts/execve.c
@@ -13,7 +13,9 @@
* <CHROOT>/bin/sh. This allows use of basic utilities. This
* design will likely be revisited.
*/
- pseudo_client_op(OP_EXEC, PSA_EXEC, -1, -1, file, 0);
+ if (antimagic == 0) {
+ pseudo_client_op(OP_EXEC, PSA_EXEC, -1, -1, file, 0);
+ }
if (!pseudo_get_value("PSEUDO_RELOADED"))
new_environ = pseudo_setupenvp(envp);