mktemp.3: Reference mkdtemp(3) in addition to mkstemp(3)

Mention mkdtemp(3) as another secure alternative to mktemp(3).

See also https://sourceware.org/bugzilla/show_bug.cgi?id=2898.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Gleb Fotengauer-Malinovskiy 2015-08-08 10:05:17 +02:00 committed by Michael Kerrisk
parent f0d0f68dc8
commit 9b44ad2028
1 changed files with 3 additions and 1 deletions

View File

@ -126,8 +126,10 @@ opening the file, every use of
.BR mktemp ()
is a security risk.
The race is avoided by
.BR mkstemp (3).
.BR mkstemp (3) and
.BR mkdtemp (3).
.SH SEE ALSO
.BR mkdtemp (3),
.BR mkstemp (3),
.BR tempnam (3),
.BR tmpfile (3),