From: Thomas Roessler Date: Mon, 12 Apr 2004 19:17:32 +0000 (+0000) Subject: Include the user ID with temporary file names. Suggested by X-Git-Tag: mutt-1-5-15-rel~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9a184bb11282a1093cc398d0871e58000733412;p=mutt Include the user ID with temporary file names. Suggested by eravin@panix.com in #1833. --- diff --git a/muttlib.c b/muttlib.c index 5f155147..e02b44dc 100644 --- a/muttlib.c +++ b/muttlib.c @@ -657,7 +657,7 @@ void mutt_free_envelope (ENVELOPE **p) void _mutt_mktemp (char *s, const char *src, int line) { - snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++); + snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getuid(), (int) getpid (), Counter++); dprint (1, (debugfile, "%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s)); unlink (s); }