diff options
author | 1998-02-23 19:33:01 +0000 | |
---|---|---|
committer | 1998-02-23 19:33:01 +0000 | |
commit | 42a3135edf1bb9d48535b4f28cbca64982a4414a (patch) | |
tree | 8656afadd495d293571be7477dc5eb233cb4abc8 /lib/libc/stdio | |
parent | Please GCC 2.8 -Wall + some KNF (diff) | |
download | wireguard-openbsd-42a3135edf1bb9d48535b4f28cbca64982a4414a.tar.xz wireguard-openbsd-42a3135edf1bb9d48535b4f28cbca64982a4414a.zip |
Mention that mkdtemp() is not portable.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/mktemp.3 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3 index 94020563289..d0faa9afe62 100644 --- a/lib/libc/stdio/mktemp.3 +++ b/lib/libc/stdio/mktemp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mktemp.3,v 1.5 1997/10/07 22:21:33 millert Exp $ +.\" $OpenBSD: mktemp.3,v 1.6 1998/02/23 19:33:01 millert Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -145,9 +145,16 @@ function. .Sh BUGS An attacker can guess the filenames produced by .Fn mktemp . -Whenever it is possible +Whenever it is possible, .Fn mkstemp +or +.Fn mkdtemp should be used instead. +.Pp +The +.Fn mkdtemp +function is nonstandard and should not be used if portability +is required. .Sh SEE ALSO .Xr chmod 2 , .Xr getpid 2 , @@ -159,3 +166,9 @@ A .Fn mktemp function appeared in .At v7 . +.br +The +.Fn mkdtemp +function appeared in +.Bx Open +2.2. |