From 8f412df3f560645cf83e2dcba3a310bff6c8b355 Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Sun, 10 Jun 2001 18:27:35 -0400 Subject: DOC: Added a comment about the risk of using tempnam in Unix, as opposed to using mkstemp. --- Source/cmSystemTools.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 19aa5ef..e9efdcc 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -769,6 +769,9 @@ bool cmSystemTools::RunCommand(const char* command, std::string cmSystemTools::TemporaryFileName() { + /** \warning in Unix is recomended to use mkstemp( char * ) + instead of tempnam in order to avoid the security + risk of setting rights with 0666 */ return tempnam(0, "cmake"); } -- cgit v0.12