components/ksh93/patches/CR7128313.patch
author Judy Chen <Judy.Chen@oracle.com>
Wed, 20 Mar 2013 17:30:15 -0400
branchs11-update
changeset 2526 a7c3342cac79
parent 2484 3f966e6adf2c
permissions -rw-r--r--
PSARC/2012/347 Amendment to IPMItool from PSARC/2011/104 15919183 Remove ipmitool from Userland consolidation
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);