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

tempnam() should be avoided in the unix version of tempname() function #22949

Closed
sambitdash opened this issue Jul 25, 2017 · 3 comments
Closed
Labels
filesystem Underlying file system and functions that use it

Comments

@sambitdash
Copy link
Contributor

tempnam() is marked obsolete in the opengroup spec as well. See the link for Issue 7.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/tempnam.html

@tkelman
Copy link
Contributor

tkelman commented Jul 25, 2017

I think we should deprecate the Julia tempname completely, it's got a lot of problems (xref #9053 as well)

@nalimilan
Copy link
Member

Right, tempname isn't safe due to race conditions with potential attackers. Better make this clear by requiring people to use randstring explicitly when they really can't use mktemp.

Let's close this in favor of #9053, where the discussion has already happened?

@laborg
Copy link
Contributor

laborg commented Feb 7, 2022

The use of tempnam has been removed in https://github.com/JuliaLang/julia/pull/38879/files

@laborg laborg closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filesystem Underlying file system and functions that use it
Projects
None yet
Development

No branches or pull requests

5 participants