aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-19 12:59:10 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 12:59:10 -0400
commitc2d3da6303a6a5e41eabcb18b56ee5d8434a9817 (patch)
tree50b83261d97617f71faf1bdcb69be13a8c4339b4 /src/or/rephist.c
parent2163e420b2aea36b57a620eb4bb2ff1e7c9e966f (diff)
parent3e3aac5fd552b7b1949b0d2e12368cea26449b83 (diff)
downloadtor-c2d3da6303a6a5e41eabcb18b56ee5d8434a9817.tar
tor-c2d3da6303a6a5e41eabcb18b56ee5d8434a9817.tar.gz
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index cd74f1b72..1ad08fe93 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -2490,7 +2490,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;