소스 검색

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.
Nick Mathewson 10 년 전
부모
커밋
a6e3db5f72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/keypin.c

+ 1 - 1
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;