From 7be1d8764d30d2f04696d7f834df349bc4bffd73 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Sat, 7 Jun 2014 14:37:17 +0200 Subject: 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 . --- crypto/rand/randfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto') diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index bd42f21356..7b4c7dc319 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -80,6 +80,7 @@ #endif #ifndef OPENSSL_NO_POSIX_IO # include +# include #endif #ifdef _WIN32 -- cgit v1.2.3