Create ~/.rnd with mode 0600 instead of 0666
authorJakub Wilk <jwilk@debian.org>
Sat, 7 Jun 2014 12:37:17 +0000 (14:37 +0200)
committerMatt Caswell <matt@openssl.org>
Sun, 8 Jun 2014 20:20:34 +0000 (21:20 +0100)
commit38956b071adfba2e3fd05e4885687cf6bc85e74e
tree3ec7e084c40c91bdf5b207ba78f24eec9ec3a86b
parenta21f350a76b34b66dcaf9c1676baec945f32e980
Create ~/.rnd with mode 0600 instead of 0666

Because of a missing include <fcntl.h> we don't have O_CREATE and don't create
the file with open() using mode 0600 but fall back to using fopen() with the
default umask followed by a chmod().

Problem found by Jakub Wilk <jwilk@debian.org>.
crypto/rand/randfile.c