From: markus schnalke Date: Thu, 22 Mar 2012 06:51:27 +0000 (+0100) Subject: slocal: must not read profile (indirectly through m_mktemp2()). X-Git-Tag: mmh-thesis-end~262 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=7456ca0a9639bfb73899b721fe66323d90277160 slocal: must not read profile (indirectly through m_mktemp2()). --- diff --git a/uip/slocal.c b/uip/slocal.c index eecd760..b619952 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1258,7 +1258,7 @@ copy_message(int qd, char *tmpfil, int fold) FILE *qfp, *ffp; char *tfile = NULL; - tfile = m_mktemp2(NULL, invo_name, &fd1, NULL); + tfile = m_mktemp2("/tmp/", invo_name, &fd1, NULL); if (tfile == NULL) return -1; fchmod(fd1, 0600); strncpy(tmpfil, tfile, BUFSIZ);