[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit a6e3db5f7241e28641feffadccbfb9e60e936208
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits