17714341 /usr/bin/cd core dumps during string substitution s11u1-sru 0.175.1.15.0.2.0 S11.1SRU15.2
authorVladimir Marek <Vladimir.Marek@oracle.com>
Mon, 25 Nov 2013 17:42:18 +0100
branchs11u1-sru
changeset 2846 308d0c192664
parent 2845 5260a9f352d7
child 2849 30ec61e5f661
17714341 /usr/bin/cd core dumps during string substitution
components/ksh93/Makefile
components/ksh93/patches/Bug17714341.patch
--- a/components/ksh93/Makefile	Thu Oct 24 11:32:37 2013 +0200
+++ b/components/ksh93/Makefile	Mon Nov 25 17:42:18 2013 +0100
@@ -74,7 +74,7 @@
 					 CR7168611.patch CR7178717.patch \
 					 CR7175995.patch CR7128313.patch \
 					 Bug15794787,15819673.patch \
-					 Bug15808407.patch
+					 Bug15808407.patch Bug17714341.patch
 # Fixup HOSTTYPE to match uname output and bits
 HOSTTYPE32=sol11.$(shell uname -p)
 HOSTTYPE64=sol11.$(shell uname -p)-64
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ksh93/patches/Bug17714341.patch	Mon Nov 25 17:42:18 2013 +0100
@@ -0,0 +1,11 @@
+--- a/src/cmd/ksh93/bltins/cd_pwd.c	2013-10-31 16:18:43.904039613 +0100
++++ b/src/cmd/ksh93/bltins/cd_pwd.c	2013-10-31 16:18:14.980499662 +0100
+@@ -81,7 +81,7 @@
+ 	dir =  argv[0];
+ 	if(error_info.errors>0 || argc >2)
+ 		errormsg(SH_DICT,ERROR_usage(2),"%s",optusage((char*)0));
+-	oldpwd = (char*)shp->pwd;
++	oldpwd = path_pwd(shp,0);
+ 	opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD); 
+ 	pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD); 
+ 	if(argc==2)