Improve the explanation on the (in)security of mktemp(3).

This commit is contained in:
Sheldon Hearn 2000-01-25 13:58:46 +00:00
parent d59590d848
commit 71207448cf

View File

@ -186,9 +186,12 @@ See
.Xr gcc 1
for more information.
.Sh BUGS
An attacker can guess the filenames produced by
.Fn mktemp .
Whenever it is possible
This family of functions produces filenames which can be guessed.
This makes the race in
.Fn mktemp ,
between testing for a file's existence and opening it for use,
particularly dangerous from a security perspective.
Whenever it is possible,
.Fn mkstemp
should be used instead.
.Sh SEE ALSO