diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-07-18 18:12:31 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-19 11:11:34 -0400 |
commit | f021df58246b5cb9b1312e5339f484462ba94b02 (patch) | |
tree | 29177ae1f45be33100dbf69e2413e60e8aa1d924 /src/tools | |
parent | 866a2828bdcb88398ee8332e918e9a9028397156 (diff) | |
download | tor-f021df58246b5cb9b1312e5339f484462ba94b02.tar tor-f021df58246b5cb9b1312e5339f484462ba94b02.tar.gz |
Specify text or binary mode in every start_writing_to_stdio_file call
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-gencert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index a04eddafc..7a516b457 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -264,7 +264,7 @@ load_identity_key(void) } if (!(f = start_writing_to_stdio_file(identity_key_file, - OPEN_FLAGS_REPLACE, 0400, + OPEN_FLAGS_REPLACE | O_TEXT, 0400, &open_file))) return 1; @@ -349,7 +349,7 @@ generate_signing_key(void) } if (!(f = start_writing_to_stdio_file(signing_key_file, - OPEN_FLAGS_REPLACE, 0600, + OPEN_FLAGS_REPLACE | O_TEXT, 0600, &open_file))) return 1; |