summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-19 10:30:42 +0000
committerkris <kris@FreeBSD.org>2000-11-19 10:30:42 +0000
commit4d2f72a2d520d4d1b0631e32e6d0c5b170b16584 (patch)
treeda50eb71b3dec57d41b33a7181361bd0d4081d6c /lib
parent22625cdfe7d824047b41adfc3e7d2458f8303ef6 (diff)
downloadFreeBSD-src-4d2f72a2d520d4d1b0631e32e6d0c5b170b16584.zip
FreeBSD-src-4d2f72a2d520d4d1b0631e32e6d0c5b170b16584.tar.gz
Don't suggest people use getpid() to construct temporary filenames;
point them to mkstemp() instead. Obtained from: OpenBSD (based on)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getpid.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2
index 1d94d82..1eb7741 100644
--- a/lib/libc/sys/getpid.2
+++ b/lib/libc/sys/getpid.2
@@ -53,8 +53,12 @@
returns
the process ID of
the calling process.
-The ID is guaranteed to be unique and is
-useful for constructing temporary file names.
+Though the ID is guaranteed to be unique, it should
+.Em NOT
+be used for constructing temporary file names, for
+security reasons; see
+.Xr mkstemp 3
+instead.
.Pp
.Fn Getppid
returns the process ID of the parent
OpenPOWER on IntegriCloud