Skip to content

Commit

Permalink
switched to secure mkstemp()
Browse files Browse the repository at this point in the history
  • Loading branch information
tpltnt committed Jan 15, 2018
1 parent 7e39351 commit 4089a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allmydata/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def init_tempdir(self):
# 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):
Expand Down

0 comments on commit 4089a03

Please sign in to comment.