summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-20 01:16:29 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-20 01:16:29 -0500
commite669d25e43d4c21f11a396c07dc8ed632b406139 (patch)
tree402e8dcab343ddba8f8c66daa7d197616f402750 /src/or/dirserv.c
parent5a66de7015d32e723f13171b622a8dabcef05126 (diff)
downloadtor-e669d25e43d4c21f11a396c07dc8ed632b406139.tar.gz
tor-e669d25e43d4c21f11a396c07dc8ed632b406139.zip
Do cloexec on socketpairs and stdio files
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 4f793dc746..4410d558e0 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2445,7 +2445,7 @@ dirserv_read_measured_bandwidths(const char *from_file,
smartlist_t *routerstatuses)
{
char line[256];
- FILE *fp = fopen(from_file, "r");
+ FILE *fp = tor_fopen_cloexec(from_file, "r");
int applied_lines = 0;
time_t file_time;
int ok;