Use mkstemp rather than mktemp to prevent a small race. OpenBSD has a similar code, but this was indepenent.
Use mkstemp rather than mktemp to prevent a small race.
OpenBSD has a similar code, but this was indepenent.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase