[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Richard Levitte levitte at openssl.org
Thu Sep 8 22:12:02 UTC 2016


The branch OpenSSL_1_0_2-stable has been updated
       via  20d402a38e4d0b0e4b6ffc540ab7c756b39f3904 (commit)
      from  8195a8691108d89fbb0dd11599154067009d10d6 (commit)


- Log -----------------------------------------------------------------
commit 20d402a38e4d0b0e4b6ffc540ab7c756b39f3904
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Sep 8 23:39:26 2016 +0200

    If errno is ENXIO in BSS_new_file(), set BIO_R_NO_SUCH_FILE
    
    VMS sets that errno when the device part of a file spec is malformed
    or a logical name that doesn't exist.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (cherry picked from commit e82e2186e93e9a678dd8c0c5ba084d21d27d4d62)

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

Summary of changes:
 crypto/bio/bss_file.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c
index bfba93e..a6e3b3a 100644
--- a/crypto/bio/bss_file.c
+++ b/crypto/bio/bss_file.c
@@ -174,7 +174,11 @@ BIO *BIO_new_file(const char *filename, const char *mode)
     if (file == NULL) {
         SYSerr(SYS_F_FOPEN, get_last_sys_error());
         ERR_add_error_data(5, "fopen('", filename, "','", mode, "')");
-        if (errno == ENOENT)
+        if (errno == ENOENT
+# ifdef ENXIO
+            || errno == ENXIO
+# endif
+            )
             BIOerr(BIO_F_BIO_NEW_FILE, BIO_R_NO_SUCH_FILE);
         else
             BIOerr(BIO_F_BIO_NEW_FILE, ERR_R_SYS_LIB);


More information about the openssl-commits mailing list