From: Karim Hamidou Date: Wed, 27 Dec 2017 19:55:01 +0000 (+0100) Subject: Don't run command locally X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0362b07feb5f90104749ec1c9bb008375ec805be;p=minival.git Don't run command locally --- diff --git a/web.py b/web.py index 69716cf..59938d3 100644 --- a/web.py +++ b/web.py @@ -43,7 +43,7 @@ def execute_in_sandbox(code): cmd = "/usr/bin/python" os.dup2(write_pipe, sys.stdout.fileno()) - os.execv(cmd, [cmd, tmp_filename]) + # os.execv(cmd, [cmd, tmp_filename]) else: os.close(write_pipe) os.waitpid(pid, 0)