switched to secure mkstemp()

This commit is contained in:
tpltnt 2018-01-15 18:32:26 +01:00
parent c8f747cb13
commit 710ba84a02

View File

@ -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):