slocal: must not read profile (indirectly through m_mktemp2()).
authormarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 06:51:27 +0000 (07:51 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 22 Mar 2012 06:51:27 +0000 (07:51 +0100)
uip/slocal.c

index eecd760..b619952 100644 (file)
@@ -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);