The source project of this merge request has been removed.
Respect umask when creating temporary file
gmx solvate/genion create a temporary topology file for modification, then rename it, causing the creation of a non-temporary 600 topology file.
This is due to makeTemporaryFilename
using mkstemp
on unix, which creates file with 600 permission.
Use permissions derived from current umask instead, as in file created through open()
.
Refs #4040 (closed)