]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
misc: Use tempfile.mkstemp() instead of tempnam
authorSam Lang <sam.lang@inktank.com>
Fri, 12 Apr 2013 20:52:47 +0000 (15:52 -0500)
committerSam Lang <sam.lang@inktank.com>
Mon, 15 Apr 2013 18:43:20 +0000 (13:43 -0500)
commit3b0d91533e551bf91ab885cb524680ef819bfce6
tree5128800d080bc5e9b609c02a5d153ad3dfa61968
parent35e6db72a1dffbb9b13a7e5e3ab7d35ecdf39b49
misc: Use tempfile.mkstemp() instead of tempnam

tempnam() is considered an unsafe security risk because the filename
generated is easy to guess and can be symlinked in advance.  Use
mkstemp() instead.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
teuthology/misc.py