]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Attempt to fix keypinning on Windows
authorNick Mathewson <nickm@torproject.org>
Fri, 29 May 2015 18:38:59 +0000 (14:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 May 2015 18:38:59 +0000 (14:38 -0400)
Not that I would countenance a directory authority on Windows, but
it would be nice if the unit tests passed.

src/or/keypin.c

index 7b0c0c7dcfa38954973062ab79686586719805a1..a5b4cf75f929cb037f8d71d1960540d4d2007f39 100644 (file)
@@ -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;