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/geoip.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/geoip.c')
-rw-r--r-- | src/or/geoip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index c621ea8183..c51142c82e 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -976,7 +976,7 @@ geoip_dirreq_stats_write(time_t now) data_v2 = geoip_get_client_history(GEOIP_CLIENT_NETWORKSTATUS_V2); data_v3 = geoip_get_client_history(GEOIP_CLIENT_NETWORKSTATUS); format_iso_time(written, now); - 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; @@ -1309,7 +1309,7 @@ geoip_entry_stats_write(time_t now) filename = get_datadir_fname2("stats", "entry-stats"); data = geoip_get_client_history(GEOIP_CLIENT_CONNECT); format_iso_time(written, now); - 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; |