[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?

WGH report at bugs.python.org
Sun Sep 12 19:29:16 EDT 2021


WGH <wgh at torlan.ru> added the comment:

> My patch uses O_EXCL. It makes possible to use linkat() to create a path for the temporary file (I didn't try it, but I read that it's possible). I don't know if using O_EXCL should be the default.

I think it is the other way around. From the manual: "If O_EXCL is not specified, then linkat(2) can ..."

----------
nosy: +WGH

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21515>
_______________________________________


More information about the Python-bugs-list mailing list