Skip to contentSkip to conversation

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

PATCH In review Gleb Fotengauer-Malinovskiy 2 participants 2 messages Aug 8, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 man3/mktemp.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
man3/mktemp.3 +3 -1
index 79e9023..0531fad 100644
@@ -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),
Signature · 5 lines
glebfm
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20150808080512.GA7386-N9aU+Tdk7XkoO014n+3aBsY9il7ykmry@public.gmane.org

#2 lore raw
Quoted 3 lines · Gleb Fotengauer-Malinovskiy

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

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

Thanks, Gleb. Applied.

Cheers,

Michael

Quoted 21 lines
---
 man3/mktemp.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
man3/mktemp.3 +3 -1
index 79e9023..0531fad 100644
@@ -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),
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html