Commit 24e10dc2 by Jeremy Katz

Don't use a shell and thus avoid a whole class of problems

parent bd378642
...@@ -11,7 +11,7 @@ import datetime ...@@ -11,7 +11,7 @@ import datetime
args = sys.argv[1:] args = sys.argv[1:]
startd = datetime.datetime.now() startd = datetime.datetime.now()
cmd = subprocess.Popen(args, shell=True, cmd = subprocess.Popen(args, shell=False,
stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = cmd.communicate() out, err = cmd.communicate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment