This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.
OK for the trunk? Is this something one should back port to the branches?

Tobias

Attachment: patch.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]