--- a/components/ksh93/Makefile Fri Oct 09 03:15:31 2015 -0700
+++ b/components/ksh93/Makefile Fri Oct 09 03:26:04 2015 -0700
@@ -81,7 +81,7 @@
Bug15808407.patch Bug17714341.patch \
17432413.patch 17824699.patch \
17435456.patch 17851169.patch \
- Bug15993811.patch
+ Bug15993811.patch 21547336.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/21547336.patch Fri Oct 09 03:26:04 2015 -0700
@@ -0,0 +1,16 @@
+http://lists.research.att.com/pipermail/ast-developers/2015q3.txt
+Message-ID: <[email protected]>
+
+diff --git a/src/cmd/ksh93/bltins/cd_pwd.c b/src/cmd/ksh93/bltins/cd_pwd.c
+index 0735be9..ed544bf 100644
+--- a/src/cmd/ksh93/bltins/cd_pwd.c
++++ b/src/cmd/ksh93/bltins/cd_pwd.c
+@@ -191,7 +191,7 @@ success:
+ if(*dir != '/')
+ return(0);
+ nv_putval(opwdnod,oldpwd,NV_RDONLY);
+- if(oldpwd)
++ if(oldpwd && (oldpwd!=e_dot))
+ free(oldpwd);
+ flag = strlen(dir);
+ /* delete trailing '/' */