diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 09:58:49 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:14 +0100 |
commit | 61e0cb5dddb89ddab1d68791eb28d892c114622f (patch) | |
tree | 56d6c5d62ad4a9cd4f25693d9412283c5cb2b229 /p11-kit/pin.c | |
parent | d9076a99c59bb0132b25277a2340f428c9b6c98e (diff) |
Open files in binary mode on windows
So that the Windows' C library doesn't munge line endings
Diffstat (limited to 'p11-kit/pin.c')
-rw-r--r-- | p11-kit/pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |