Re: [Patch, Fortran] Set umask(0600) before calling mkstemp

2012-10-10 Thread Janne Blomqvist
On Wed, Oct 10, 2012 at 1:31 PM, Tobias Burnus wrote: > Depending on the system mkstemp might create the scratch files with 0666 > permission (e.g. glibc <= 2.06); for security reasons, it should use 0600. > Thus, one is supposed to set a umask before calling the function (see, e.g., > the Linux

[Patch, Fortran] Set umask(0600) before calling mkstemp

2012-10-10 Thread Tobias Burnus
Depending on the system mkstemp might create the scratch files with 0666 permission (e.g. glibc <= 2.06); for security reasons, it should use 0600. Thus, one is supposed to set a umask before calling the function (see, e.g., the Linux man page for mkstemp). Build and regtested on x86-64-linux