Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmpnam_r' is dangerous, better use mkstemp' #62080

Closed
u14183 mannequin opened this issue Apr 30, 2013 · 2 comments
Closed

tmpnam_r' is dangerous, better use mkstemp' #62080

u14183 mannequin opened this issue Apr 30, 2013 · 2 comments
Labels
build The build process and cross-build

Comments

@u14183
Copy link
Mannequin

u14183 mannequin commented Apr 30, 2013

BPO 17880
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-04-30.12:09:26.036>
created_at = <Date 2013-04-30.10:54:00.862>
labels = ['build']
title = "`tmpnam_r' is dangerous, better use `mkstemp'"
updated_at = <Date 2013-04-30.12:09:26.013>
user = 'https://bugs.python.org/u14183'

bugs.python.org fields:

activity = <Date 2013-04-30.12:09:26.013>
actor = 'christian.heimes'
assignee = 'none'
closed = True
closed_date = <Date 2013-04-30.12:09:26.036>
closer = 'christian.heimes'
components = ['Build']
creation = <Date 2013-04-30.10:54:00.862>
creator = 'u14183'
dependencies = []
files = []
hgrepos = []
issue_num = 17880
keywords = []
message_count = 2.0
messages = ['188152', '188156']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'u14183']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue17880'
versions = ['Python 2.7']

@u14183
Copy link
Mannequin Author

u14183 mannequin commented Apr 30, 2013

/tmp/Python-2.7.3/./Modules/posixmodule.c:7432: warning: the use of tmpnam_r' is dangerous, better use mkstemp'

@u14183 u14183 mannequin added build The build process and cross-build labels Apr 30, 2013
@tiran
Copy link
Member

tiran commented Apr 30, 2013

Please ignore the linker warning. tmpnam_r has been removed from Python 3.x. It's still available in 2.7 for legacy reasons and marked as dangerous in our docs http://docs.python.org/2.7/library/os.html#os.tempnam

@tiran tiran closed this as completed Apr 30, 2013
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant