aboutsummaryrefslogtreecommitdiffstats
path: root/guts/execv.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/execv.c')
-rw-r--r--guts/execv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/guts/execv.c b/guts/execv.c
index cc37e0a..a72556b 100644
--- a/guts/execv.c
+++ b/guts/execv.c
@@ -12,7 +12,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"))
pseudo_setupenv();