The branch OpenSSL_1_1_0-stable has been updated
       via  ad1730359220cef5903d16c7f58b602fc3713414 (commit)
      from  ae59efc2f60bd839fe80ef50d889c74c4afbb703 (commit)


- Log -----------------------------------------------------------------
commit ad1730359220cef5903d16c7f58b602fc3713414
Author: Richard Levitte <[email protected]>
Date:   Wed Sep 19 21:33:45 2018 +0200

    crypto/ui/ui_openssl.c: make sure to recognise ENXIO and EIO too
    
    These both indicate that the file descriptor we're trying to use as a
    terminal isn't, in fact, a terminal.
    
    Fixes #7271
    
    Reviewed-by: Matthias St. Pierre <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/7272)
    
    (cherry picked from commit 276bf8620ce35a613c856f2b70348f65ffe94067)

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

Summary of changes:
 crypto/ui/ui_openssl.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index bfe93a5..a25934c 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -436,6 +436,24 @@ static int open_console(UI *ui)
             is_a_tty = 0;
         else
 # endif
+# ifdef ENXIO
+            /*
+             * Solaris can return ENXIO.
+             * This should be ok
+             */
+        if (errno == ENXIO)
+            is_a_tty = 0;
+        else
+# endif
+# ifdef EIO
+            /*
+             * Linux can return EIO.
+             * This should be ok
+             */
+        if (errno == EIO)
+            is_a_tty = 0;
+        else
+# endif
 # ifdef ENODEV
             /*
              * MacOS X returns ENODEV (Operation not supported by device),
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to