summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@kitware.com>2001-06-10 18:27:35 -0400
committerLuis Ibanez <luis.ibanez@kitware.com>2001-06-10 18:27:35 -0400
commit8f412df3f560645cf83e2dcba3a310bff6c8b355 (patch)
tree96a8c1275bffe05105a672ef775e334fdd2ebf13
parent7b996f791044f45c67f213ff57c39fc881e7e992 (diff)
downloadcmake-8f412df3f560645cf83e2dcba3a310bff6c8b355.tar.gz
DOC: Added a comment about the risk of using tempnam in Unix, as opposed to
using mkstemp.
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 19aa5efcb3..e9efdcc056 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");
}