diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-04 15:30:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-04 15:30:40 +0000 |
commit | 6faa9e26414abde4832ec88c347435565c751e0b (patch) | |
tree | 7b29c0f45deb534b8178879faa204047c45e6607 /src/common/crypto.c | |
parent | 97cc48f904806157ce47fa524b4247d03d55e769 (diff) | |
download | tor-6faa9e26414abde4832ec88c347435565c751e0b.tar.gz tor-6faa9e26414abde4832ec88c347435565c751e0b.zip |
r13239@catbus: nickm | 2007-06-04 11:30:37 -0400
Fix the fix for bug 445: set umask properly. Also use open+fdopen rather than just umask+fopen, and create authority identity key with mode 400.
svn:r10485
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index d4059e0d75..bcb8a375a8 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -566,7 +566,6 @@ 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); |