Skip to content

Replace tmpnam() with mkstemp()

Michael Orlitzky requested to merge (removed):mkstemp into main

This makes our temporary file usage a little bit more secure, and stops compilers from complaining about tmpnam().

It's a lot of find-and-replace of fprintf to dprintf aside from that it's pretty straightforward. The new test suite passes with these changes but if you have any more Singular examples handy (to utilize the temporary file) I'd be happy to know that they still work.

Merge request reports