15765108 SUNBT7128313 ksh93 executes subshell with bad path to command s11u1-sru 0.175.1.5.0.3.0 0.175.1.5.0.4.0 0.175.1.5.0.5.0 S11.1SRU5.3 S11.1SRU5.4 S11.1SRU5.5
authorRohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
Mon, 18 Feb 2013 01:17:35 -0600
branchs11u1-sru
changeset 2497 43014bd244d4
parent 2496 f5c29a3e8107
child 2499 8f10474c207c
15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
components/ksh93/Makefile
components/ksh93/patches/CR7128313.patch
--- a/components/ksh93/Makefile	Sun Feb 17 22:31:47 2013 -0800
+++ b/components/ksh93/Makefile	Mon Feb 18 01:17:35 2013 -0600
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 PARFAIT_BUILD=no
 
@@ -72,7 +72,7 @@
 					 CR7019368.patch CR6729252.patch \
 					 MAP_TYPE_64_Bits.patch CR7167466.patch \
 					 CR7168611.patch CR7178717.patch \
-					 CR7175995.patch
+					 CR7175995.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	Mon Feb 18 01:17:35 2013 -0600
@@ -0,0 +1,10 @@
+--- a/src/cmd/ksh93/sh/path.c
++++ b/src/cmd/ksh93/sh/path.c
[email protected]@ -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);