Blame SOURCES/ksh-20140801-diskfull.patch

1a53a7
diff -up ksh-20120801/src/cmd/ksh93/sh/main.c.orig ksh-20120801/src/cmd/ksh93/sh/main.c
1a53a7
--- ksh-20120801/src/cmd/ksh93/sh/main.c.orig	2015-04-29 16:49:11.502958000 -0300
1a53a7
+++ ksh-20120801/src/cmd/ksh93/sh/main.c	2015-05-08 18:19:55.688776922 -0300
1a53a7
@@ -423,7 +423,7 @@ static void	exfile(register Shell_t *shp
1a53a7
 		sfsync(shp->outpool);
1a53a7
 		shp->st.execbrk = shp->st.breakcnt = 0;
1a53a7
 		/* check for return from profile or env file */
1a53a7
-		if(sh_isstate(SH_PROFILE) && (jmpval==SH_JMPFUN || jmpval==SH_JMPEXIT))
1a53a7
+		if(sh_isstate(SH_PROFILE) && (jmpval==SH_JMPFUN || jmpval==SH_JMPEXIT || jmpval==SH_JMPERREXIT))
1a53a7
 		{
1a53a7
 			sh_setstate(states);
1a53a7
 			goto done;
1a53a7
@@ -598,7 +598,7 @@ done:
1a53a7
 	}
1a53a7
 	if(jmpval == SH_JMPSCRIPT)
1a53a7
 		siglongjmp(*shp->jmplist,jmpval);
1a53a7
-	else if(jmpval == SH_JMPEXIT)
1a53a7
+	else if(jmpval == SH_JMPEXIT || jmpval == SH_JMPERREXIT)
1a53a7
 		sh_done(shp,0);
1a53a7
 	if(fno>0)
1a53a7
 		sh_close(fno);