1 More random file creation in /tmp to prevent DOS, see CVE CAN-2005-2351 and
2 upstream http://bugs.mutt.org/3158
8 void _mutt_mktemp (char *s, const char *src, int line)
10 - snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getuid(), (int) getpid (), Counter++);
15 + snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d-%d%x%x", NONULL (Tempdir), NONULL(Hostname), (int) getuid(), (int) getpid (),
16 + Counter++, (unsigned int) rand(), (unsigned int) rand());
17 dprint (3, (debugfile, "%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s));