summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/conf.c2
-rw-r--r--p11-kit/pin.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/p11-kit/conf.c b/p11-kit/conf.c
index 28008aa..778ea00 100644
--- a/p11-kit/conf.c
+++ b/p11-kit/conf.c
@@ -125,7 +125,7 @@ read_config_file (const char* filename, int flags)
assert (filename);
- f = fopen (filename, "r");
+ f = fopen (filename, "rb");
if (f == NULL) {
error = errno;
if ((flags & CONF_IGNORE_MISSING) &&
diff --git a/p11-kit/pin.c b/p11-kit/pin.c
index afcb8ca..dac635c 100644
--- a/p11-kit/pin.c
+++ b/p11-kit/pin.c
@@ -465,7 +465,7 @@ p11_kit_pin_file_callback (const char *pin_source,
if (pin_flags & P11_KIT_PIN_FLAGS_RETRY)
return NULL;
- fd = open (pin_source, O_RDONLY);
+ fd = open (pin_source, O_BINARY | O_RDONLY);
if (fd == -1)
return NULL;