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/rephist.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/rephist.c')
-rw-r--r-- | src/or/rephist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index b7341f3c0d..24447004ef 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -2500,7 +2500,7 @@ rep_hist_buffer_stats_write(time_t now) if (check_private_dir(statsdir, CPD_CREATE, get_options()->User) < 0) goto done; filename = get_datadir_fname2("stats", "buffer-stats"); - out = start_writing_to_stdio_file(filename, OPEN_FLAGS_APPEND, + out = start_writing_to_stdio_file(filename, OPEN_FLAGS_APPEND | O_TEXT, 0600, &open_file); if (!out) goto done; |