projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revert bogus patch part.
[apps/madmutt.git]
/
lib-crypt
/
crypt.c
diff --git
a/lib-crypt/crypt.c
b/lib-crypt/crypt.c
index
36fbcda
..
b133add
100644
(file)
--- a/
lib-crypt/crypt.c
+++ b/
lib-crypt/crypt.c
@@
-12,35
+12,20
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <sys/wait.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <ctype.h>
+#include <lib-lib/lib-lib.h>
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
-#include <lib-lib/lib-lib.h>
-
#include <lib-mime/mime.h>
#include <lib-ui/curses.h>
#include <lib-mime/mime.h>
#include <lib-ui/curses.h>
+#include <lib-mx/mx.h>
-#include "mutt.h"
#include "alias.h"
#include "handler.h"
#include "copy.h"
#include "alias.h"
#include "handler.h"
#include "copy.h"
@@
-356,9
+341,9
@@
void crypt_extract_keys_from_messages (HEADER * h)
address_t *tmp = NULL;
FILE *fpout;
address_t *tmp = NULL;
FILE *fpout;
-
mutt_mktemp (tempfname
);
- if (!
(fpout = safe_fopen (tempfname, "w"))
) {
- mutt_
perror (tempfname
);
+
fpout = m_tempfile(tempfname, sizeof(tempfname), NONULL(Tempdir), NULL
);
+ if (!
fpout
) {
+ mutt_
error(_("Could not create temporary file")
);
return;
}
return;
}