[tor-commits] [tor/master] Attempt to fix keypinning on Windows

nickm at torproject.org nickm at torproject.org
Fri May 29 18:39:36 UTC 2015


commit a6e3db5f7241e28641feffadccbfb9e60e936208
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri May 29 14:38:59 2015 -0400

    Attempt to fix keypinning on Windows
    
    Not that I would countenance a directory authority on Windows, but
    it would be nice if the unit tests passed.
---
 src/or/keypin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/keypin.c b/src/or/keypin.c
index 7b0c0c7..a5b4cf7 100644
--- a/src/or/keypin.c
+++ b/src/or/keypin.c
@@ -202,7 +202,7 @@ int
 keypin_open_journal(const char *fname)
 {
   /* O_SYNC ??*/
-  int fd = tor_open_cloexec(fname, O_WRONLY|O_CREAT, 0600);
+  int fd = tor_open_cloexec(fname, O_WRONLY|O_CREAT|O_BINARY, 0600);
   if (fd < 0)
     goto err;
 



More information about the tor-commits mailing list