Salut Bastien, On 1/27/21 4:48 PM, roucaries.bast...@gmail.com wrote: > From: Bastien Roucariès <ro...@debian.org> > > Do not use for documentation purposes the unsecure mktemp function
This message doesn't correspond to the change below (which removes a reference to "tempnam" and adds a reference to "mktemp". But also, I don't think it makes systems more secure to remove the info that tempnam is influence by TMPDIR. And, this patch is surely not correct. Yes, TMPDIR influences tmpfile(3). But how does TMPDIR influence mktemp(3), mkstemp(3), and mkdtemp(3), which base the temporary filename on a path supplied by the caller? Finally, a request for patches: the format of the subject line should rather be: [PATCH ...] environ.7: Do not document... Thanks, Michael > Signed-off-by: Bastien Roucariès <ro...@debian.org> > --- > man7/environ.7 | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/man7/environ.7 b/man7/environ.7 > index 182d823d2..d889310d6 100644 > --- a/man7/environ.7 > +++ b/man7/environ.7 > @@ -191,7 +191,10 @@ and > .IP * > .B TMPDIR > influences the path prefix of names created by > -.BR tempnam (3) > +.BR mktemp (1), > +.BR mkstemp (3), > +.BR mkdtemp (3), > +.BR tmpfile (3), > and other routines, and the temporary directory used by > .BR sort (1) > and other programs. > @@ -289,6 +292,7 @@ should consider renaming their option to > .BR csh (1), > .BR env (1), > .BR login (1), > +.BR mktemp (1), > .BR printenv (1), > .BR sh (1), > .BR tcsh (1), > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/