https://bugzilla.redhat.com/show_bug.cgi?id=1202604



--- Comment #9 from Stephen Gallagher <[email protected]> ---
(In reply to Zbigniew Jędrzejewski-Szmek from comment #6)
> It seems that tempfile.NamedTemporaryFile would do the right thing without
> requiring all this manual cleanup:
> 

The reason I'm using the tempfile.mkstemp() implementation is this:

"Creates a temporary file in the most secure manner possible. There are no race
conditions in the file’s creation, assuming that the platform properly
implements the os.O_EXCL flag for os.open()."

I very much do not want to worry about a race when creating a certificate,
particularly a CA certificate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to