[GiNaC-list] Patch: Replace mktemp with mkstemp

Richard B. Kreckel kreckel at in.terlu.de
Sat Oct 8 20:35:59 CEST 2016

On 10/07/2016 06:18 PM, Till Hofmann wrote:
> while building 1.7.1 I noticed that mktemp is still used. I've attached
> a patch that replaces mktemp with mkstemp. Note that the behavior is
> slightly different: The file is opened twice because mkstemp directly
> opens the file, too. I'm not aware of any other solution to safely
> create an ofstream for a tmp file. If there is, please let me know.

Thanks! Patch applied.

Richard B. Kreckel

More information about the GiNaC-list mailing list