components/ksh93/patches/CR7128313.patch
author Rohith Ramesh - Sun Microsystems - Bangalore India <rohith.ramesh@oracle.com>
Tue, 11 Dec 2012 22:36:13 -0800
changeset 1079 f86b9f7aa5e7
permissions -rw-r--r--
15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
--- a/src/cmd/ksh93/sh/path.c
+++ b/src/cmd/ksh93/sh/path.c
@@ -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);