mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user