Our mktemp(1) implementation uses 8-X for a temp file by default. That's ok, but we should increase the value from 8 to 10 as many other OS already did. git grep '\.XXXXXXXX' mktemp.c: asprintf(&name, "%s%s.XXXXXXXX", _PATH_TMP, prefix); mktemp.c: asprintf(&name, "%s/%s.XXXXXXXX", tmpdir, prefix);
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=98839c40c74aed19324962c365ebc2cb8520f91e commit 98839c40c74aed19324962c365ebc2cb8520f91e Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2022-02-12 11:35:51 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> CommitDate: 2022-02-12 11:35:51 +0000 better unique file names Our mktemp(1) implementation uses 8-X for a temp file by default. That's ok, but we should increase the value from 8 to 10 as many other OS already did. PR: 261438 usr.bin/mktemp/mktemp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)