15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
authorRohith Ramesh - Sun Microsystems - Bangalore India <rohith.ramesh@oracle.com>
Tue, 11 Dec 2012 22:36:13 -0800
changeset 1079 f86b9f7aa5e7
parent 1078 29b8fb943842
child 1080 ca67dcd7608b
15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
components/ksh93/Makefile
components/ksh93/patches/CR7128313.patch
--- a/components/ksh93/Makefile	Mon Dec 10 23:00:56 2012 -0800
+++ b/components/ksh93/Makefile	Tue Dec 11 22:36:13 2012 -0800
@@ -24,7 +24,7 @@
 
 include ../../make-rules/shared-macros.mk
 
-COMPONENT_BUGDB=	utility/ksh93
+COMPONENT_BUGDB=    utility/ksh93
 
 COMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
 
@@ -76,7 +76,8 @@
 					 MAP_TYPE_64_Bits.patch CR7167466.patch \
 					 CR7168611.patch CR7178717.patch \
 					 CR7175995.patch \
-					 CR7186440_ksh93_disable_predictive_editing.patch
+					 CR7186440_ksh93_disable_predictive_editing.patch \
+					 CR7128313.patch 
 
 # Fixup HOSTTYPE to match uname output and bits
 HOSTTYPE32=sol11.$(shell uname -p)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ksh93/patches/CR7128313.patch	Tue Dec 11 22:36:13 2012 -0800
@@ -0,0 +1,10 @@
+--- a/src/cmd/ksh93/sh/path.c
++++ b/src/cmd/ksh93/sh/path.c
+@@ -1761,6 +1761,7 @@
+ 	char *ptr;
+ 	if(!pp)
+ 		return(NULL);
++	pp->shp->last_table = 0;
+ 	path_nextcomp(pp->shp,pp,nv_name(np),pp);
+ 	ptr = stakfreeze(0);
+ 	return(ptr+PATH_OFFSET);