author | Judy Chen <Judy.Chen@oracle.com> |
Wed, 20 Mar 2013 17:30:15 -0400 | |
branch | s11-update |
changeset 2526 | a7c3342cac79 |
parent 2484 | 3f966e6adf2c |
permissions | -rw-r--r-- |
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); |