[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Mon Apr 11 13:36:06 UTC 2016


The branch master has been updated
       via  3012e650398a83e72f3ce63c3803e06765dae735 (commit)
      from  f8c3f2b4eda697a35b213d44df627190d03c694f (commit)


- Log -----------------------------------------------------------------
commit 3012e650398a83e72f3ce63c3803e06765dae735
Author: Matt Caswell <matt at openssl.org>
Date:   Mon Apr 11 13:59:31 2016 +0100

    Fix the no-posix-io option
    
    Fix a compile failure with no-posix-io
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/rand/randfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index a5b2b7f..3ee6bf5 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -252,7 +252,7 @@ int RAND_write_file(const char *file)
     if (out == NULL)
         goto err;
 
-#ifndef NO_CHMOD
+#if !defined(NO_CHMOD) && !defined(OPENSSL_NO_POSIX_IO)
     chmod(file, 0600);
 #endif
     n = RAND_DATA;


More information about the openssl-commits mailing list