mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
DOC: Added a comment about the risk of using tempnam in Unix, as opposed to
using mkstemp.
This commit is contained in:
parent
7b996f7910
commit
8f412df3f5
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user