Blame SOURCES/ksh-20120801-tpstl.patch

5a79ad
diff -up ksh-20120801/src/cmd/ksh93/sh/init.c.tpstl ksh-20120801/src/cmd/ksh93/sh/init.c
5a79ad
--- ksh-20120801/src/cmd/ksh93/sh/init.c.tpstl	2014-04-03 11:21:25.395547276 +0200
5a79ad
+++ ksh-20120801/src/cmd/ksh93/sh/init.c	2014-04-03 11:26:03.908867208 +0200
5a79ad
@@ -332,7 +332,7 @@ static Namfun_t *clone_optindex(Namval_t
5a79ad
 /* Trap for restricted variables FPATH, PATH, SHELL, ENV */
5a79ad
 static void put_restricted(register Namval_t* np,const char *val,int flags,Namfun_t *fp)
5a79ad
 {
5a79ad
-	Shell_t *shp = nv_shell(np);
5a79ad
+	Shell_t *shp = sh_getinterp();
5a79ad
 	int	path_scoped = 0, fpath_scoped=0;
5a79ad
 	Pathcomp_t *pp;
5a79ad
 	char *name = nv_name(np);