https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105890
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- https://pubs.opengroup.org/onlinepubs/009604499/functions/mkstemp.html says: "The string in template should look like a filename with six trailing 'X's" https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkstemp.html says: "The application shall ensure that the string provided in template is a pathname ending with at least six trailing 'X' characters."