[Bug 289980] mail(1) man page FILES mentions /tmp/R* but code (mostly) uses /tmp/mail.R*
Date: Fri, 03 Oct 2025 15:08:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289980
Bug ID: 289980
Summary: mail(1) man page FILES mentions /tmp/R* but code
(mostly) uses /tmp/mail.R*
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Manual Pages
Assignee: bugs@FreeBSD.org
Reporter: freebsd@tim.thechases.com
CC: doc@FreeBSD.org
Created attachment 264266
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=264266&action=edit
Should adjust the man-page and malformed mkstemp template strings
Hopefully a really easy doc fix, and possibly a little code-tweaking to bring
mkstemp() templates into alignment
$ man mail | ul -t dumb | sed -n '/^FILES/,/Temporary/p' | sed -n '1p;$p'
FILES
/tmp/R* Temporary files.
Checking the source code:
$ cd /usr/src/usr.bin/mail
$ fgrep -B1 mkstemp *.c | grep XXX
turns up that most of them use "%s/mail.R*" instead of "%s/R*". There are also
a couple that just use "%s/mail.*" and one that uses "%s/mbox.*" which might
need to be brought into alignment with the man-pages and use "%s/mail.R*" too.
--
You are receiving this mail because:
You are on the CC list for the bug.