diff options
author | maxim <maxim@FreeBSD.org> | 2007-03-16 21:46:24 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2007-03-16 21:46:24 +0000 |
commit | 47a8f834c2a6e137ae3da9ca9ca53b2352bf01f2 (patch) | |
tree | 5c3589b09c3593e7586c1c78574a4894884f1dc2 | |
parent | 563bb41ea85c8d0a17b05da77c753b5c8420701b (diff) | |
download | FreeBSD-src-47a8f834c2a6e137ae3da9ca9ca53b2352bf01f2.zip FreeBSD-src-47a8f834c2a6e137ae3da9ca9ca53b2352bf01f2.tar.gz |
o Add ENVIRONMENT section and mention there that TMPDIR is ignored
when issetugid(3) is true.
PR: docs/108346
Obtained from: OpenBSD
MFC after: 1 week
-rw-r--r-- | lib/libc/stdio/tmpnam.3 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3 index 6dd88bf..66652b7 100644 --- a/lib/libc/stdio/tmpnam.3 +++ b/lib/libc/stdio/tmpnam.3 @@ -32,7 +32,7 @@ .\" @(#)tmpnam.3 8.2 (Berkeley) 11/17/93 .\" $FreeBSD$ .\" -.Dd November 17, 1993 +.Dd March 18, 2007 .Dt TMPFILE 3 .Os .Sh NAME @@ -152,6 +152,19 @@ return a pointer to a file name on success, and a .Dv NULL pointer on error. +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It Ev TMPDIR +.Pf [ Fn tempnam +only] +If set, +the directory in which the temporary file is stored. +.Ev TMPDIR +is ignored for processes +for which +.Xr issetugid 2 +is true. +.El .Sh COMPATIBILITY These interfaces are provided from System V and .Tn ANSI |