Blame SOURCES/ksh-20120801-tpstl.patch

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