summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-03 23:38:20 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-03 23:38:20 +0000
commitcb0324c400189bbbd79c2cd40eee1c9c77121765 (patch)
treeb3a07c948650d2f14db559c3ab203a60b32b01cd /src/common
parent6d447e04a23bdcb368151edd08393e6a028277b9 (diff)
downloadtor-cb0324c400189bbbd79c2cd40eee1c9c77121765.tar.gz
tor-cb0324c400189bbbd79c2cd40eee1c9c77121765.zip
r13191@catbus: nickm | 2007-06-03 19:38:18 -0400
Set umask(0700) when starting tor-gencert; resolves bug 445. svn:r10475
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index bcb8a375a8..d4059e0d75 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -566,6 +566,7 @@ crypto_pk_write_private_key_to_filename(crypto_pk_env_t *env,
s = tor_malloc(len+1);
memcpy(s, cp, len);
s[len]='\0';
+ /* XXXX020 make this file get created with mode 600. */
r = write_str_to_file(fname, s, 0);
BIO_free(bio);
tor_free(s);