aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-cert-db.c
diff options
context:
space:
mode:
Diffstat (limited to 'smime/lib/e-cert-db.c')
-rw-r--r--smime/lib/e-cert-db.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index 5f415880e0..3104d7a716 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -60,6 +60,9 @@
#include <config.h>
#endif
+#include <glib.h>
+#include <glib/gstdio.h>
+
/* XXX toshok why oh *why* god WHY did they do this? no fucking
sense */
/* private NSS defines used by PSM */
@@ -85,10 +88,10 @@
#include "prprf.h"
#include "prmem.h"
#include "e-util/e-dialog-utils.h"
+#include "e-util/e-util-private.h"
#include <gtk/gtkmessagedialog.h>
#include <libgnome/gnome-i18n.h>
#include <libedataserverui/e-passwords.h>
-#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -1100,7 +1103,7 @@ e_cert_db_import_certs_from_file (ECertDB *cert_db,
return FALSE;
}
- fd = open (file_path, O_RDONLY);
+ fd = g_open (file_path, O_RDONLY|O_BINARY, 0);
if (fd == -1) {
/* XXX gerror */
return FALSE;