Blame SOURCES/ksh-20120801-alarmifs.patch

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