From c15c61db00218000966ce8fa6c3bb030c25e4ba2 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Fri, 18 Dec 2015 18:29:53 +0100 Subject: [PATCH] Warn about usage of posix function mktemp (#3918). --- cfg/posix.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index e9b4ad8b4..374df057a 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -528,6 +528,8 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func + Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. +The function 'mktemp' is considered to be dangerous due to race conditions and some implementations generating only up to 26 different filenames out of each template. This function has been removed in POSIX.1-2008. Use 'mkstemp' or 'mkdtemp' instead.