From 710ba84a02e3b90b4816aa172180d043cbd262b3 Mon Sep 17 00:00:00 2001 From: tpltnt Date: Mon, 15 Jan 2018 18:32:26 +0100 Subject: [PATCH] switched to secure mkstemp() --- src/allmydata/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 8631d8580..4ede3a78c 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -273,7 +273,7 @@ class Node(service.MultiService): # tempfile.TemporaryFile) to put large request bodies in the given # directory. Without this, the default temp dir is usually /tmp/, # which is frequently too small. - test_name = tempfile.mktemp() + test_name = tempfile.mkstemp() _assert(os.path.dirname(test_name) == tempdir, test_name, tempdir) def check_privacy(self):