More closely inspecting the mktemp(1) #FreeBSD manual page: If mktemp can succes...
Shawn Webb (He/Him/Idiot) @lattera@bsd.network
More closely inspecting the mktemp(1) #FreeBSD manual page:
If mktemp can successfully generate a unique file name, the file is created with mode 0600 (unless the -u flag is given)
What mode is used if the -u flag is given? Complicating matters further:
-u, --dry-run
Operate in “unsafe” mode. The temp file will be unlinked before mktemp exits. This is slightly better than mktemp(3) but still introduces a race condition. Use of this option is encouraged.
So is -u unsafe mode or is it --dry-run? I would assume that dry run mode would be a completely safe mode of operation (the exact opposite of "unsafe mode").