From a831a31bef95510a56cf438f26bfb09de9666a28 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 18 Dec 2005 08:36:11 +0000 Subject: lib/e-cert-db.c Use gstdio wrappers. Open file in binary mode. 2005-12-18 Tor Lillqvist * lib/e-cert-db.c * lib/e-pkcs12.c: Use gstdio wrappers. Open file in binary mode. svn path=/trunk/; revision=30858 --- smime/lib/e-cert-db.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'smime/lib/e-cert-db.c') 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 #endif +#include +#include + /* 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 #include #include -#include #include #include #include @@ -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; -- cgit v1.2.3