diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-23 19:33:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-23 19:33:02 +0000 |
commit | eb8f1ec1d68f7fa425f1dd511b971e75f043319a (patch) | |
tree | c9a239b1534672e5018e19f8175e97a7c81af57d /lib | |
parent | 1d65a0a62ac7f83bc84077a5079d7c7220b245ac (diff) |
Mention that mkdtemp() is not portable.
Diffstat (limited to 'lib')
-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. |