diff options
-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. |