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:29:23 +0000 (21:29 +0100)
commit8781538f41cf8388be5cfbedb9bde172287bf7f4
tree966c992f56c5cf8339f9d59f5820ca374d24df2e
parent8343fdc3c7d27211bb1ad276aae38b28a1616b22
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