Blame SOURCES/ksh-20120801-alarmifs.patch

ff22b9
--- ksh-20120801/src/cmd/ksh93/sh/init.c	2014-12-10 20:11:17.693446084 -0200
ff22b9
+++ ksh-20120801/src/cmd/ksh93/sh/init.c	2014-12-10 20:11:24.753442619 -0200
ff22b9
@@ -576,6 +576,7 @@ static char* get_ifs(register Namval_t*
ff22b9
 			shp->ifstable[' '] = shp->ifstable['\t'] = S_SPACE;
ff22b9
 			shp->ifstable['\n'] = S_NL;
ff22b9
 		}
ff22b9
+		shp->ifstable[0] = S_EOF;
ff22b9
 	}
ff22b9
 	return(value);
ff22b9
 }
ff22b9
--- ksh-20120801/src/cmd/ksh93/bltins/alarm.c	2014-12-18 12:03:39.198461933 -0200
ff22b9
+++ ksh-20120801/src/cmd/ksh93/bltins/alarm.c	2014-12-18 12:04:32.464421268 -0200
ff22b9
@@ -130,6 +130,7 @@ void	sh_timetraps(Shell_t *shp)
ff22b9
 {
ff22b9
 	register struct tevent *tp, *tpnext;
ff22b9
 	register struct tevent *tptop;
ff22b9
+	char	ifstable[256];
ff22b9
 	while(1)
ff22b9
 	{
ff22b9
 		shp->sigflag[SIGALRM] &= ~SH_SIGALRM;
ff22b9
@@ -141,7 +142,11 @@ void	sh_timetraps(Shell_t *shp)
ff22b9
 			{
ff22b9
 				tp->flags &= ~L_FLAG;
ff22b9
 				if(tp->action)
ff22b9
+				{
ff22b9
+				    	memcpy(ifstable,shp->ifstable,sizeof(ifstable));
ff22b9
 					sh_fun(tp->action,tp->node,(char**)0);
ff22b9
+					memcpy(shp->ifstable,ifstable,sizeof(ifstable));
ff22b9
+				}
ff22b9
 				tp->flags &= ~L_FLAG;
ff22b9
 				if(!tp->flags)
ff22b9
 				{
ff22b9