20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
authorLijo George<lijo.x.george@oracle.com>
Thu, 23 Feb 2017 01:05:08 -0800
changeset 7683 7955769fefe6
parent 7681 0bc3311966eb
child 7685 a7ec984d7d4c
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
components/ksh93/patches/275-20855453.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ksh93/patches/275-20855453.patch	Thu Feb 23 01:05:08 2017 -0800
@@ -0,0 +1,31 @@
+This patch has been developed inhouse and has been submitted upstream.
+Details can be found at 
+https://github.com/att/ast/issues/30
+--- INIT.2012-08-01.old/src/cmd/ksh93/sh/io.c	2017-01-04 14:41:25.199402375 +0000
++++ INIT.2012-08-01/src/cmd/ksh93/sh/io.c	2017-01-04 14:32:20.279449987 +0000
[email protected]@ -64,9 +64,9 @@
+ 
+ #ifndef ERROR_PIPE
+ #ifdef ECONNRESET
+-#define ERROR_PIPE(e)	((e)==EPIPE||(e)==ECONNRESET)
++#define ERROR_PIPE(e)	((e)==EPIPE||(e)==ECONNRESET||(e)==EIO)
+ #else
+-#define ERROR_PIPE(e)	((e)==EPIPE)
++#define ERROR_PIPE(e)	((e)==EPIPE||(e)==EIO)
+ #endif
+ #endif
+ 
+--- INIT.2012-08-01.old/src/lib/libast/include/error.h	2017-02-17 02:39:37.507460057 +0000
++++ INIT.2012-08-01/src/lib/libast/include/error.h	2017-02-17 04:42:38.872435651 +0000
[email protected]@ -85,9 +85,9 @@
+ #define ERROR_SET		0x0080	/* set context			*/
+ 
+ #ifdef ECONNRESET
+-#define ERROR_PIPE(e)		((e)==EPIPE||(e)==ECONNRESET)
++#define ERROR_PIPE(e)		((e)==EPIPE||(e)==ECONNRESET||(e)==EIO)
+ #else
+-#define ERROR_PIPE(e)		((e)==EPIPE)
++#define ERROR_PIPE(e)		((e)==EPIPE||(e)==EIO)
+ #endif
+ 
+ /*