Patch: Replace mktemp with mkstemp
Hi all, 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. Kind regards, Till
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. -richy. -- Richard B. Kreckel <http://in.terlu.de/~kreckel/>
participants (2)
-
Richard B. Kreckel
-
Till Hofmann