Skip to content

Respect umask when creating temporary file

Eliane Briand requested to merge (removed):master into master

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)

Merge request reports