diff options
Diffstat (limited to 'src/or/keypin.c')
-rw-r--r-- | src/or/keypin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/keypin.c b/src/or/keypin.c index 7b0c0c7dcf..a5b4cf75f9 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; |