aboutsummaryrefslogtreecommitdiff
path: root/src/tools
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/tools
parent2163e420b2aea36b57a620eb4bb2ff1e7c9e966f (diff)
parent3e3aac5fd552b7b1949b0d2e12368cea26449b83 (diff)
downloadtor-c2d3da6303a6a5e41eabcb18b56ee5d8434a9817.tar.gz
tor-c2d3da6303a6a5e41eabcb18b56ee5d8434a9817.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-gencert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c
index a04eddafc7..7a516b4571 100644
--- a/src/tools/tor-gencert.c
+++ b/src/tools/tor-gencert.c
@@ -264,7 +264,7 @@ load_identity_key(void)
}
if (!(f = start_writing_to_stdio_file(identity_key_file,
- OPEN_FLAGS_REPLACE, 0400,
+ OPEN_FLAGS_REPLACE | O_TEXT, 0400,
&open_file)))
return 1;
@@ -349,7 +349,7 @@ generate_signing_key(void)
}
if (!(f = start_writing_to_stdio_file(signing_key_file,
- OPEN_FLAGS_REPLACE, 0600,
+ OPEN_FLAGS_REPLACE | O_TEXT, 0600,
&open_file)))
return 1;