push username, homedir and tmpdir in lua too.
[apps/madmutt.git] / lib-crypt / pgpkey.c
index 77c5d26..96db58a 100644 (file)
@@ -505,7 +505,7 @@ static pgp_key_t pgp_select_key (pgp_key_t keys, address_t * p, const char *s)
         break;
       }
 
         break;
       }
 
-      fp = m_tempfile (tempfile, sizeof(tempfile), NONULL(Tempdir), NULL);
+      fp = m_tempfile (tempfile, sizeof(tempfile), NONULL(MCore.tmpdir), NULL);
       if (!fp) {
         m_fclose(&devnull);
         mutt_perror (_("Can't create temporary file"));
       if (!fp) {
         m_fclose(&devnull);
         mutt_perror (_("Can't create temporary file"));
@@ -682,7 +682,7 @@ BODY *pgp_make_key_attachment (char *tempf)
   pgp_free_key (&key);
 
   if (!tempf) {
   pgp_free_key (&key);
 
   if (!tempf) {
-    tempfp = m_tempfile (tempfb, sizeof(tempfb), NONULL(Tempdir), NULL);
+    tempfp = m_tempfile (tempfb, sizeof(tempfb), NONULL(MCore.tmpdir), NULL);
     tempf = tempfb;
   } else {
     tempfp = safe_fopen(tempf, "a");
     tempf = tempfb;
   } else {
     tempfp = safe_fopen(tempf, "a");