components/ksh93/patches/CR7128313.patch
author Mohana Rao Gorai <mohana.gorai@oracle.com>
Fri, 28 Mar 2014 03:44:53 -0700
branchs11-update
changeset 3019 a2bfef404a4b
parent 2484 3f966e6adf2c
permissions -rw-r--r--
18410757 a2ps needs tpno info in the manifest
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2484
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     1
--- a/src/cmd/ksh93/sh/path.c
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     2
+++ b/src/cmd/ksh93/sh/path.c
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     3
@@ -1761,6 +1761,7 @@
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     4
 	char *ptr;
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     5
 	if(!pp)
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     6
 		return(NULL);
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     7
+	pp->shp->last_table = 0;
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     8
 	path_nextcomp(pp->shp,pp,nv_name(np),pp);
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
     9
 	ptr = stakfreeze(0);
3f966e6adf2c 15765108 SUNBT7128313 ksh93 executes subshell with bad path to command
Rohith Ramesh Bangalore India <rohith.ramesh@oracle.com>
parents:
diff changeset
    10
 	return(ptr+PATH_OFFSET);