# HG changeset patch # User Vladimir Marek # Date 1383136846 -3600 # Node ID f92203f7c0c2da0a0740c140951e973c13842e40 # Parent 9babd0ede872abcad1c53e5af9221885b4bc0d21 17714341 /usr/bin/cd core dumps during string substitution diff -r 9babd0ede872 -r f92203f7c0c2 components/ksh93/Makefile --- a/components/ksh93/Makefile Wed Nov 06 04:08:10 2013 -0800 +++ b/components/ksh93/Makefile Wed Oct 30 13:40:46 2013 +0100 @@ -77,7 +77,7 @@ CR7175995.patch \ CR7186440_ksh93_disable_predictive_editing.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) diff -r 9babd0ede872 -r f92203f7c0c2 components/ksh93/patches/Bug17714341.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/ksh93/patches/Bug17714341.patch Wed Oct 30 13:40:46 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)