From: Jakub Wilk Date: Sat, 7 Jun 2014 12:37:17 +0000 (+0200) Subject: Create ~/.rnd with mode 0600 instead of 0666 X-Git-Tag: OpenSSL_1_0_0n~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8781538f41cf8388be5cfbedb9bde172287bf7f4;p=oweals%2Fopenssl.git Create ~/.rnd with mode 0600 instead of 0666 Because of a missing include 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 . --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 030e07f418..d30f6f1e7a 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -77,6 +77,7 @@ #endif #ifndef OPENSSL_NO_POSIX_IO # include +# include #endif #ifdef _WIN32