components/ksh93/patches/035-CR7036535.patch
changeset 4268 d723f8ed85fe
parent 4196 d697072a92f5
child 4305 90493abe0c5c
--- a/components/ksh93/patches/035-CR7036535.patch	Sat May 09 12:45:23 2015 -0700
+++ b/components/ksh93/patches/035-CR7036535.patch	Sun May 10 11:59:46 2015 -0700
@@ -1,15 +1,16 @@
---- a/src/cmd/ksh93/sh/path.c	Mon Nov 22 20:55:38 2010
-+++ b/src/cmd/ksh93/sh/path.c	Tue Sep 27 10:48:45 2011
-@@ -1430,7 +1435,7 @@
+# Solaris specific issue. Not submitted to the community.
+--- a/src/cmd/ksh93/sh/path.c	2015-02-24 13:25:19.360898415 -0800
++++ b/src/cmd/ksh93/sh/path.c	2015-02-25 00:54:42.168155178 -0800
+@@ -1463,7 +1463,7 @@
  		len = strlen(name);
  	for(pp=first; pp; pp=pp->next)
  	{
--		if(memcmp(name,pp->name,len)==0 && (pp->name[len]==':' || pp->name[len]==0))
-+		if(strncmp(name,pp->name,len)==0 && (pp->name[len]==':' || pp->name[len]==0))
+-		if(len == pp->len && memcmp(name,pp->name,len)==0)
++		if(len == pp->len && strncmp(name,pp->name,len)==0)
  		{
  			pp->flags |= flag;
  			return(first);
-@@ -1740,7 +1745,7 @@
+@@ -1751,7 +1751,7 @@
  	register Pathcomp_t *pp=first;
  	while(pp)
  	{
@@ -66,3 +67,4 @@
  			{
  				int	k=1;
  				Namarr_t *ap=0;
+