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/or/rendservice.c | |
parent | 866a2828bdcb88398ee8332e918e9a9028397156 (diff) | |
download | tor-f021df58246b5cb9b1312e5339f484462ba94b02.tar.gz tor-f021df58246b5cb9b1312e5339f484462ba94b02.zip |
Specify text or binary mode in every start_writing_to_stdio_file call
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index d9a936471e..8a0171170c 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -635,13 +635,15 @@ rend_service_load_keys(void) } /* Prepare client_keys and hostname files. */ - if (!(cfile = start_writing_to_stdio_file(cfname, OPEN_FLAGS_REPLACE, + if (!(cfile = start_writing_to_stdio_file(cfname, + OPEN_FLAGS_REPLACE | O_TEXT, 0600, &open_cfile))) { log_warn(LD_CONFIG, "Could not open client_keys file %s", escaped(cfname)); goto err; } - if (!(hfile = start_writing_to_stdio_file(fname, OPEN_FLAGS_REPLACE, + if (!(hfile = start_writing_to_stdio_file(fname, + OPEN_FLAGS_REPLACE | O_TEXT, 0600, &open_hfile))) { log_warn(LD_CONFIG, "Could not open hostname file %s", escaped(fname)); goto err; |