[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, sure and there is a RuntimeWarning exception (tmpnam is a potential security risk to your program) when we want to use os.tmpnam(). And in the doc, there is a warning section. Ok, I close this issue. -- stage: -> resolved status: open -> close

[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix of this issue is Python 3. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : Hi, I got these warning messages /usr/bin/ld: libpython2.7.a(posixmodule.o): in function `posix_tmpnam': /home/stephane/src/github.com/python/cpython/./Modules/posixmodule.c:7648: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /usr/bin/l